Adding slugify parameter transform (#185)
* Adding slugify parameter transform Fixes #172 * Cleaning up code And slugifying my orders
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Microsoft.eShopWeb.Web.Controllers
|
||||
public string StatusMessage { get; set; }
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> Index()
|
||||
public async Task<IActionResult> MyAccount()
|
||||
{
|
||||
var user = await _userManager.GetUserAsync(User);
|
||||
if (user == null)
|
||||
|
||||
@@ -20,8 +20,8 @@ namespace Microsoft.eShopWeb.Web.Controllers
|
||||
_orderRepository = orderRepository;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> Index()
|
||||
[HttpGet()]
|
||||
public async Task<IActionResult> MyOrders()
|
||||
{
|
||||
var orders = await _orderRepository.ListAsync(new CustomerOrdersWithItemsSpecification(User.Identity.Name));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user