Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 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());
 }
Ejemplo n.º 3
0
 public void AddAttendanceSwipe(AttandanceControl control)
 {
     AttandanceControlling.Add(control);
 }