diff --git a/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml b/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml index 5b501af..406d0b8 100644 --- a/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml +++ b/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml @@ -2,9 +2,99 @@ @model ShoppingAssistantWebClient.Web.Pages.CartModel @{ } +

Cart

- -
- +
+ @foreach (var product in Model.products) { +
+ + +
+ + + @{ + string price = "N/A"; + if(!(product.Price is null)) { + price = "$" + product.Price.ToString(); + } + } + +
+
+ +
+
+ }
\ No newline at end of file diff --git a/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml.cs b/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml.cs index 626414f..5d99cb5 100644 --- a/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml.cs +++ b/ShoppingAssistantWebClient.Web/Pages/Cart.cshtml.cs @@ -5,8 +5,21 @@ namespace ShoppingAssistantWebClient.Web.Pages { public class CartModel : PageModel { + public List products = new List { + new Product {Description = "HDMI cabel HDMI cabel HDMI cabel HDMI cabel HDMI cabel HDMI cabelHDMI cabel", Rating = 4.0, Price = 12}, + new Product {Description = "super mega hdmi cabel", Rating = 3.8, Price = 13.11}, + new Product {Description = "", Rating = 4.0} + }; + public void OnGet() { + } } + + public class Product { + public string Description {get; set;} + public double? Rating {get; set;} + public double? Price {get; set;} + } } diff --git a/ShoppingAssistantWebClient.Web/wwwroot/assets/amazon.png b/ShoppingAssistantWebClient.Web/wwwroot/assets/amazon.png new file mode 100644 index 0000000..45b729e Binary files /dev/null and b/ShoppingAssistantWebClient.Web/wwwroot/assets/amazon.png differ diff --git a/ShoppingAssistantWebClient.Web/wwwroot/assets/star.png b/ShoppingAssistantWebClient.Web/wwwroot/assets/star.png new file mode 100644 index 0000000..153e1d4 Binary files /dev/null and b/ShoppingAssistantWebClient.Web/wwwroot/assets/star.png differ