Exemple #1
0
        public async Task <CourseDto> GetCourse(int id)
        {
            var course = await _unitOfWork.CourseRepository.GetByIdAsync(id) ??
                         throw new EntityNotFoundException();

            return(CourseMapper.ToDto(course));
        }