Пример #1
0
        public ActionResult Update(Attendance attendance)
        {
            var createdAttendance = _iFAttendance.Update(UserId, attendance);

            _iFWorkLog.Create(createdAttendance.AttendanceId, UserId, attendance.WorkLogs);
            _iFWorkLog.Delete(attendance.DeletedWorkLogs);
            return(RedirectToAction("Index"));
        }
Пример #2
0
        public ActionResult Update(Attendance attendance)
        {
            var createdAttendance = _iFAttendance.Update(UserId, attendance);

            return(RedirectToAction("Index"));
        }