Exemplo n.º 1
0
        [HttpGet("by-student/{userId}")] //1287
        public async Task <ActionResult <List <LessonWithJournalAndTopicOutputModel> > > GetAllLessonByUser(int userId)
        {
            IEnumerable <Lesson> lessons = await lessonStorage.GetLessonsWithJournalsAndTopics(userId);

            return(Ok(LessonWithJournalAndTopicMapper.ToOutputModels(lessons)));
        }