// GET: Home public ViewResult Index(SortFilterPageOptions options) { var listServices = new ListCustomersService(_context); var customerList = listServices.SortFilterPage(options).ToList(); return(View(new CustomersListDto(options, customerList))); }
public IActionResult Index(SortFilterPageOptions options) { var listService = new ListCustomersService(_context); var customerList = listService.SortFilterPage(options).ToList(); return(View(new CustomerListCombinedDto(options, customerList))); }