Пример #1
0
        public ActionResult Index(HomeViewModel viewModel, string submitButton)
        {
            viewModel.FilteredByStation = string.Equals(submitButton, "Filter by station");
            Session.Add("HomeViewModel", viewModel);

            return View(viewModel);
        }
Пример #2
0
 //
 // GET: /Home/
 public ActionResult Index()
 {
     var viewModel = new HomeViewModel();
     return View(viewModel);
 }