public async Task <ActionResult> Index(FilterParameters parameters) { var viewModel = new HomePageViewModel { Page = 1, Availabilities = await beerAvailibilityMenuRepository.GetMenu(), Glasswares = await glassMenuRepository.GetMenu(), Styles = await styleMenuRepository.GetMenu(), Beers = await beerRepository.GetBeers(parameters.GetQueryConstraints()), }; return(View(viewModel)); }