[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))); }