예제 #1
0
        public IActionResult StadisticsByDateRange(DateTime dateInitial, DateTime dateFinal)
        {
            if (dateFinal == default || dateInitial == default)
            {
                return(NotFound());
            }
            var res = new Stadistics
            {
                Movies     = AdministrationRepository.GetMovies(),
                MovieTypes = AdministrationRepository.GetMovieTypes(),
                Name       = "Ventas del Rango de Fecha",
                Value      = AdministrationRepository.StadisticsByDateRange(dateInitial, dateFinal)
            };

            return(View("Stadistics", res));;
        }