예제 #1
0
 public ActionResult Edit(EmployeeModel employeeModel)
 {
     try
     {
         var employee = EmployeeMapper.MapFromEmployeeModel(employeeModel);
         Service.Update(employee);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }