Use camel case method parameters

This commit is contained in:
Nick Kirby
2017-05-07 19:52:17 +01:00
parent 8a4edfec19
commit e13f26bf56

View File

@@ -29,18 +29,18 @@ namespace Microsoft.eShopWeb.Controllers
} }
// GET: /<controller>/ // GET: /<controller>/
public async Task<IActionResult> Index(int? BrandFilterApplied, int? TypesFilterApplied, int? page) public async Task<IActionResult> Index(int? brandFilterApplied, int? typesFilterApplied, int? page)
{ {
var itemsPage = 10; var itemsPage = 10;
var catalog = await _catalogService.GetCatalogItems(page ?? 0, itemsPage, BrandFilterApplied, TypesFilterApplied); var catalog = await _catalogService.GetCatalogItems(page ?? 0, itemsPage, brandFilterApplied, typesFilterApplied);
var vm = new CatalogIndex() var vm = new CatalogIndex()
{ {
CatalogItems = catalog.Data, CatalogItems = catalog.Data,
Brands = await _catalogService.GetBrands(), Brands = await _catalogService.GetBrands(),
Types = await _catalogService.GetTypes(), Types = await _catalogService.GetTypes(),
BrandFilterApplied = BrandFilterApplied ?? 0, BrandFilterApplied = brandFilterApplied ?? 0,
TypesFilterApplied = TypesFilterApplied ?? 0, TypesFilterApplied = typesFilterApplied ?? 0,
PaginationInfo = new PaginationInfo() PaginationInfo = new PaginationInfo()
{ {
ActualPage = page ?? 0, ActualPage = page ?? 0,