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); }
public async Task <IEnumerable <Attendance> > GetAttendances() { return(await _context.GetAll()); }