Skip to content

Commit

Permalink
Merge pull request dotnet-architecture#7 from NRKirby/small-fix
Browse files Browse the repository at this point in the history
Use camel case method parameters
  • Loading branch information
ardalis authored May 12, 2017
2 parents b7ca6db + e13f26b commit 52bd7bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Web/Controllers/CatalogController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ public CatalogController(IHostingEnvironment env,
}

// 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 catalog = await _catalogService.GetCatalogItems(page ?? 0, itemsPage, BrandFilterApplied, TypesFilterApplied);
var catalog = await _catalogService.GetCatalogItems(page ?? 0, itemsPage, brandFilterApplied, typesFilterApplied);

var vm = new CatalogIndex()
{
CatalogItems = catalog.Data,
Brands = await _catalogService.GetBrands(),
Types = await _catalogService.GetTypes(),
BrandFilterApplied = BrandFilterApplied ?? 0,
TypesFilterApplied = TypesFilterApplied ?? 0,
BrandFilterApplied = brandFilterApplied ?? 0,
TypesFilterApplied = typesFilterApplied ?? 0,
PaginationInfo = new PaginationInfo()
{
ActualPage = page ?? 0,
Expand Down

0 comments on commit 52bd7bc

Please sign in to comment.