public List <AttandanceControl> FilterAttendance(Teacher teacher, Classes group, DateTime date, int time) { return(AttandanceControlling.Where(c => c.Teacher == teacher && c.Group == group && c.SwipeTime.Date == date.Date && c.SwipeTime.Hour == time).ToList()); }
public List <AttandanceControl> GetUserAttendance(Users student, AccessControl ac) { return(AttandanceControlling.Where(c => c.Student.Id == student.Id && c.Student.UserType == UserType.Student && c.SwipeTime.Date == ac.SwipeTime.Date).ToList()); }
public void AddAttendanceSwipe(AttandanceControl control) { AttandanceControlling.Add(control); }