Beispiel #1
0
        public async Task <LessonVO> AddTaskAsync(LessonVO lessonCollab)
        {
            if (!(await _lessonRepository.AddTaskAsync(_lessonConverter.Parse(lessonCollab)) is LessonModel lessonModel))
            {
                return(null);
            }

            return(_lessonConverter.Parse(lessonModel));
        }
Beispiel #2
0
 public async Task <LessonVO> AddTaskAsync(LessonVO lessonCollab)
 {
     return(_lessonConverter.Parse(await _lessonRepository.AddTaskAsync(_lessonConverter.Parse(lessonCollab))));
 }