public IActionResult Search(string email, string name, string phoneNumber, SellerStatus?status, short?page = 1) { SellerSearchModel searchModel = new SellerSearchModel { Email = email, Name = name, PhoneNumber = phoneNumber, Status = status }; return(View(new SellersListViewModel { Sellers = eCommerce.GetSellersBy(searchModel, (page - 1) * recordsPerPage, recordsPerPage), PagingInfo = new PagingInfo { CurrentPage = (short)page, RecordsPerPage = recordsPerPage, TotalRecords = eCommerce.CountSellersBy(searchModel) }, SearchModel = searchModel })); }