Exemplo n.º 1
0
        public IActionResult All()
        {
            var viewModel = new AllGenresViewModel
            {
                Genres = this.genresService.GetAll <GenreViewModel>(),
            };

            if (viewModel == null)
            {
                return(this.NotFound());
            }

            return(this.View(viewModel));
        }
Exemplo n.º 2
0
 public IActionResult AllGenres(AllGenresViewModel input)
 {
     input.Genres = this.genresService.AllGenres();
     return(this.View(input));
 }