u
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user