// GET api/lessons private IEnumerable <LessonSessionDTO> Get(int offset = 0, int size = 10) { var sessions = _lessonRepository.GetLessonWithNextSession(offset, size); var lessonSessions = sessions.ConvertAll(l => new LessonSessionDTO(l)); return(lessonSessions); }