示例#1
0
        public ActionResult FilterBy(string barNeighborhood, int barRating)
        {
            BarIndexViewModel viewModel = new BarIndexViewModel(_db);

            viewModel.FilterBy(barNeighborhood, barRating);
            return(View("Index", viewModel));
        }
示例#2
0
        public ActionResult Index()
        {
            BarIndexViewModel viewModel = new BarIndexViewModel(_db);

            return(View(viewModel));
        }