Пример #1
0
 public ActionResult EditEmployee(int Id, Employee Employee)
 {
     if (ModelState.IsValid)
     {
         if (EmployeeUtils.UpdateEmployee(Mappings.MappingDtos.ModelEmployeeToEntityEmployee(Employee)))
         {
             return(RedirectToAction("ListEmployees"));
         }
         return(View(Employee));
     }
     return(View(Employee));
 }