コード例 #1
0
        public async Task <IActionResult> GetAllGenres()
        {
            var genres = await _genreManager.GetGenresWithVideos();

            var response = _mapper.Map <IEnumerable <GenreResponse> >(genres);

            return(Ok(response));
        }