public ActionResult EditEmployee(EditEmployeeViewModel model) { if(!ModelState.IsValid) return View(model); model.EditEmployee(); return RedirectToAction("Index"); }
public ActionResult EditEmployee(int id) { EditEmployeeViewModel model = new EditEmployeeViewModel(); model.Get(id); return View(model); }