public ActionResult FilterBy(string barNeighborhood, int barRating) { BarIndexViewModel viewModel = new BarIndexViewModel(_db); viewModel.FilterBy(barNeighborhood, barRating); return(View("Index", viewModel)); }
public ActionResult Index() { BarIndexViewModel viewModel = new BarIndexViewModel(_db); return(View(viewModel)); }