public IEnumerable <AttendanceDTO> GetAttendances()
        {
            var attendances = attendanceRepo.FindAll();
            List <AttendanceDTO> attendanceDTOs = new List <AttendanceDTO>();

            Mapper.Initialize(c => c.CreateMap <DbSet <Attendance>, List <AttendanceDTO> >());
            attendanceDTOs = Mapper.Map <List <AttendanceDTO> >(attendances);

            return(attendanceDTOs);
        }