Пример #1
0
        public ActionResult EditEmployee(EditEmployeeViewModel model)
        {
            if(!ModelState.IsValid)
                return View(model);

            model.EditEmployee();
            return RedirectToAction("Index");
        }
Пример #2
0
 public ActionResult EditEmployee(int id)
 {
     EditEmployeeViewModel model = new EditEmployeeViewModel();
     model.Get(id);
     return View(model);
 }