Adding slugify parameter transform (#185)

* Adding slugify parameter transform

Fixes #172

* Cleaning up code

And slugifying my orders
This commit is contained in:
Steve Smith
2019-01-11 12:39:48 -05:00
committed by GitHub
parent 8e748a4c62
commit bc328077b0
8 changed files with 91 additions and 75 deletions

View File

@@ -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));