public async Task <IActionResult> Index(int Id, string SearchKey, int?MaxPrice, int?MinPrice, int?CategoryId) { ViewBag.Categories = _advertisementService.GetSelectListItems(); var IndexModels = await _advertisementService.GetAdvertisementIndexModels(IndexCheck.SelectInUserIdIndex, User); IndexModels = IndexModels.BySearchKey(SearchKey).ByCategory(CategoryId).ByPrice(MaxPrice, MinPrice); return(View(IndexModels)); }