diff --git a/src/Web/Controllers/CartController.cs b/src/Web/Controllers/CartController.cs index 64d2a5e..c7694ec 100644 --- a/src/Web/Controllers/CartController.cs +++ b/src/Web/Controllers/CartController.cs @@ -7,13 +7,13 @@ using Microsoft.eShopWeb.ViewModels; namespace Microsoft.eShopWeb.Controllers { [Route("[controller]/[action]")] - public class CartController : Controller + public class BasketController : Controller { private readonly IBasketService _basketService; private const string _basketSessionKey = "basketId"; private readonly IUriComposer _uriComposer; - public CartController(IBasketService basketService, + public BasketController(IBasketService basketService, IUriComposer uriComposer) { _basketService = basketService; @@ -28,9 +28,9 @@ namespace Microsoft.eShopWeb.Controllers return View(basketModel); } - // POST: /Cart/AddToCart + // POST: /Basket/AddToBasket [HttpPost] - public async Task AddToCart(CatalogItemViewModel productDetails) + public async Task AddToBasket(CatalogItemViewModel productDetails) { if (productDetails?.Id == null) { diff --git a/src/Web/Views/Cart/Checkout.cshtml b/src/Web/Views/Basket/Checkout.cshtml similarity index 100% rename from src/Web/Views/Cart/Checkout.cshtml rename to src/Web/Views/Basket/Checkout.cshtml diff --git a/src/Web/Views/Cart/Index.cshtml b/src/Web/Views/Basket/Index.cshtml similarity index 98% rename from src/Web/Views/Cart/Index.cshtml rename to src/Web/Views/Basket/Index.cshtml index 0ca7f6f..a68b37e 100644 --- a/src/Web/Views/Cart/Index.cshtml +++ b/src/Web/Views/Basket/Index.cshtml @@ -1,6 +1,6 @@ @using Microsoft.eShopWeb.ViewModels @{ - ViewData["Title"] = "Cart"; + ViewData["Title"] = "Basket"; @model BasketViewModel }
@@ -77,7 +77,7 @@ else {
- Cart is empty. + Basket is empty.
} diff --git a/src/Web/Views/Catalog/_product.cshtml b/src/Web/Views/Catalog/_product.cshtml index ea330d9..2c1fcdb 100644 --- a/src/Web/Views/Catalog/_product.cshtml +++ b/src/Web/Views/Catalog/_product.cshtml @@ -1,10 +1,10 @@ @model CatalogItemViewModel -
+ - +
@Model.Name diff --git a/src/Web/Views/Shared/_Layout.cshtml b/src/Web/Views/Shared/_Layout.cshtml index 158d32b..85d989e 100644 --- a/src/Web/Views/Shared/_Layout.cshtml +++ b/src/Web/Views/Shared/_Layout.cshtml @@ -30,7 +30,7 @@
@await Html.PartialAsync("_LoginPartial") -
Cart
+
Basket
diff --git a/src/Web/Views/Shared/_LoginPartial.cshtml b/src/Web/Views/Shared/_LoginPartial.cshtml index 23160ce..c7df63d 100644 --- a/src/Web/Views/Shared/_LoginPartial.cshtml +++ b/src/Web/Views/Shared/_LoginPartial.cshtml @@ -34,7 +34,7 @@ @*
- @await Component.InvokeAsync("Cart", new { user = UserManager.Parse(User) }) + @await Component.InvokeAsync("Basket", new { user = UserManager.Parse(User) })
*@ }