public ActionResult <IEnumerable <AuthorDto> > GetAllAuthor(string mainCategory) { var AuthorsFromDto = _course.GetAllAuthor(mainCategory); return(Ok(_mapper.Map <IEnumerable <AuthorDto> >(AuthorsFromDto))); }
public ActionResult <IEnumerable <AuthorDto> > GetAllAuthor(string mainCategory) { var AuthorsFromDto = _course.GetAllAuthor(mainCategory); return(Ok(_mapper.Map <IEnumerable <AuthorDto> >(AuthorsFromDto))); }