This commit is contained in:
MeysamMoghaddam
2025-10-09 22:32:06 +03:30
parent 3e30b6c1f6
commit 8fc4878c44
3 changed files with 83 additions and 79 deletions
+6 -5
View File
@@ -26,10 +26,11 @@ public partial class Index
if (response?.Models?.Any() == true)
{
_packs = response.Models.Select(p => new Pack(
p.Id,
p.Title,
p.Description,
Image: UrlUtility.DownloadUrl + p.ImagePath
Id: p.Id,
Title: p.Title,
Body: p.Description,
Image: UrlUtility.DownloadUrl + p.ImagePath,
Price: p.Price
)).ToList();
}
else
@@ -64,7 +65,7 @@ public partial class Index
Navigation.NavigateTo($"{RouteConstants.Package.Detail}/{packageId}");
}
private record Pack(long Id,string Title, string Body, string Image);
private record Pack(long Id, string Title, string Body, string Image, long Price);
private record Plan(string Name, string Price, bool Highlight, IEnumerable<string> Features);
private record QA(string Q, string A);
private readonly List<QA> _faqs = new()