Merge pull request #7 from NRKirby/small-fix
Use camel case method parameters
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user