public List <AttendanceModel> GetAll()
        {
            List <Attendance>      attendances     = aRepo.GetAll();
            List <AttendanceModel> attendanceModel = new List <AttendanceModel>();

            attendances.ForEach(a => attendanceModel.Add(aMapper.Map(a)));
            return(attendanceModel);
        }
示例#2
0
 public async Task <IEnumerable <Attendance> > GetAttendances()
 {
     return(await _context.GetAll());
 }