public ActionResult Details(Employee employee) { try { _iFEmployee.Update(employee); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }
public ActionResult Update(Employee employee) { _iFEmployeeTeam.Create(UserId, employee.EmployeeId, employee.EmployeeTeams); _iFEmployeeDepartment.Create(UserId, employee.EmployeeId, employee.EmployeeDepartments); var createdEmployee = _iFEmployee.Update(UserId, employee); return(RedirectToAction("Index")); }
public ActionResult Update(Employee employee) { var createdEmployee = _iFEmployee.Update(UserId, employee); return(RedirectToAction("Index")); }