Browse Source

Use camel case method parameters

main
Nick Kirby 9 years ago
parent
commit
e13f26bf56
  1. 8
      src/Web/Controllers/CatalogController.cs

8
src/Web/Controllers/CatalogController.cs

@ -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,

Loading…
Cancel
Save