public IActionResult All() { var viewModel = new AllGenresViewModel { Genres = this.genresService.GetAll <GenreViewModel>(), }; if (viewModel == null) { return(this.NotFound()); } return(this.View(viewModel)); }
public IActionResult AllGenres(AllGenresViewModel input) { input.Genres = this.genresService.AllGenres(); return(this.View(input)); }