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

            return(RedirectToAction("Index"));
        }