Exemplo n.º 1
0
        public ActionResult Index(HomeViewModel viewModel, string submitButton)
        {
            viewModel.FilteredByStation = string.Equals(submitButton, "Filter by station");
            Session.Add("HomeViewModel", viewModel);

            return View(viewModel);
        }
Exemplo n.º 2
0
 //
 // GET: /Home/
 public ActionResult Index()
 {
     var viewModel = new HomeViewModel();
     return View(viewModel);
 }