public ActionResult <IEnumerable <CourseDto> > GetCourseForAuthor(Guid authorId)
        {
            if (!_repository.AuthorExist(authorId))
            {
                return(NotFound());
            }

            var coursesFromRepo = _repository.GetCoursesForAuthor(authorId);

            return(_mapper.Map <List <CourseDto> >(coursesFromRepo));
        }