Пример #1
0
        public ActionResult SearchFormPartialView_Update(SearchForm searchForm)
        {
            TempData["SearchForm"] = searchForm;

            return RedirectToAction(searchForm.ViewName);
        }
Пример #2
0
        public ActionResult SearchFormPartialView(SearchForm searchForm)
        {
            //ViewBag.ToComboVehicleType = new VehicleTypeRepository().GetAll();
            //((List<VehicleTypeListItem>)ViewBag.ToComboVehicleType).Insert(0, new VehicleTypeListItem { VehicleTypeID = -1, Name = "<Not in list>" });

            return PartialView(new SearchForm());
        }