Implement null validation in attendance log API #29

Merged
vikas.nale merged 2 commits from Ashutosh_Bug#117_Null_Validation_In_Attendance_Log into Feature_Forum 2025-04-29 05:45:16 +00:00
Showing only changes of commit 9e5e4cd473 - Show all commits

View File

@ -318,6 +318,7 @@ namespace MarcoBMS.Services.Controllers
attendance.Comment = recordAttendanceDot.Comment;
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
{
attendance.InTime = finalDateTime;
attendance.OutTime = null;
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
}
@ -476,6 +477,7 @@ namespace MarcoBMS.Services.Controllers
attendance.Comment = recordAttendanceDot.Comment;
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
{
attendance.InTime = finalDateTime;
attendance.OutTime = null;
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
}