From e13f26bf565d118f06194137a51239da7e699de2 Mon Sep 17 00:00:00 2001 From: Nick Kirby Date: Sun, 7 May 2017 19:52:17 +0100 Subject: [PATCH] Use camel case method parameters --- src/Web/Controllers/CatalogController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Web/Controllers/CatalogController.cs b/src/Web/Controllers/CatalogController.cs index 0874cd3ff..89ebf2fcc 100644 --- a/src/Web/Controllers/CatalogController.cs +++ b/src/Web/Controllers/CatalogController.cs @@ -29,18 +29,18 @@ public CatalogController(IHostingEnvironment env, } // GET: // - public async Task Index(int? BrandFilterApplied, int? TypesFilterApplied, int? page) + public async Task 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,