Renaming Cart to Basket (#38)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@using Microsoft.eShopWeb.ViewModels
|
||||
@{
|
||||
ViewData["Title"] = "Cart";
|
||||
ViewData["Title"] = "Basket";
|
||||
@model BasketViewModel
|
||||
}
|
||||
<section class="esh-catalog-hero">
|
||||
@@ -77,7 +77,7 @@
|
||||
else
|
||||
{
|
||||
<div class="esh-catalog-items row">
|
||||
Cart is empty.
|
||||
Basket is empty.
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
@@ -1,10 +1,10 @@
|
||||
@model CatalogItemViewModel
|
||||
|
||||
|
||||
<form asp-controller="Cart" asp-action="AddToCart">
|
||||
<form asp-controller="Basket" asp-action="AddToBasket">
|
||||
|
||||
<img class="esh-catalog-thumbnail" src="@Model.PictureUri" />
|
||||
<input class="esh-catalog-button" type="submit" value="[ ADD TO CART ]" />
|
||||
<input class="esh-catalog-button" type="submit" value="[ ADD TO BASKET ]" />
|
||||
|
||||
<div class="esh-catalog-name">
|
||||
<span>@Model.Name</span>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</a>
|
||||
</section>
|
||||
@await Html.PartialAsync("_LoginPartial")
|
||||
<section class="col-lg-1 col-xs-12"><a asp-controller="Cart" asp-action="Index">Cart</a></section>
|
||||
<section class="col-lg-1 col-xs-12"><a asp-controller="Basket" asp-action="Index">Basket</a></section>
|
||||
|
||||
</article>
|
||||
</div>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</section>
|
||||
|
||||
@*<section class="col-lg-1 col-xs-12">
|
||||
@await Component.InvokeAsync("Cart", new { user = UserManager.Parse(User) })
|
||||
@await Component.InvokeAsync("Basket", new { user = UserManager.Parse(User) })
|
||||
</section>*@
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user