public IActionResult StadisticsByMovieType(string movieTypeId) { if (string.IsNullOrEmpty(movieTypeId)) { return(NotFound()); } var res = new Stadistics { Movies = AdministrationRepository.GetMovies(), MovieTypes = AdministrationRepository.GetMovieTypes(), Name = "Ventas del Tipo de Plícula", Value = AdministrationRepository.StadisticsByMovieType(movieTypeId) }; return(View("Stadistics", res)); }