예제 #1
0
        public async Task <DisciplineVO> AddTaskAsync(DisciplineVO discipline)
        {
            if (!(await _disciplineRepository.AddTaskAsync(_disciplineConverter.Parse(discipline)) is DisciplineModel addedDisci))
            {
                return(null);
            }

            return(_disciplineConverter.Parse(addedDisci));
        }