Пример #1
0
 public ActionResult CreateEmployee(Employee employee)
 {
     if (ModelState.IsValid)
     {
         if (EmployeeUtils.InsertEmployee(Mappings.MappingDtos.ModelEmployeeToEntityEmployee(employee)))
         {
             return(RedirectToAction("ListEmployees"));
         }
     }
     return(View(employee));
 }