//Save new attendance private Boolean saveAttendance(member m, Boolean isPaid) //dopuniti kada se popravi baza { var newAttendance = new attendance() { member_id = m.member_id, check_in_time = DateTime.Now, is_staff = false }; return(AttendanceDAO.insert(newAttendance)); }
private void userMemberCheckIn() { DateTime today = DateTime.Now; Boolean CheckedInForCurrentDate = AttendanceDAO.isAlreadyCheckedIn(loggedInUser.member_id, today.Day, today.Month, today.Year); if (!CheckedInForCurrentDate) { var user_member = MemberDAO.getById(loggedInUser.member_id); //UBACITI POLJE TrUE za placen dolazak var newAttendance = new attendance() { member_id = user_member.member_id, check_in_time = DateTime.Now, is_staff = true }; AttendanceDAO.insert(newAttendance); } }