コード例 #1
0
 public ActionResult Details(Employee employee)
 {
     try
     {
         _iFEmployee.Update(employee);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         return(View());
     }
 }
コード例 #2
0
        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"));
        }
コード例 #3
0
        public ActionResult Update(Employee employee)
        {
            var createdEmployee = _iFEmployee.Update(UserId, employee);

            return(RedirectToAction("Index"));
        }