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")); }
public ActionResult Update(Attendance attendance) { var createdAttendance = _iFAttendance.Update(UserId, attendance); return(RedirectToAction("Index")); }