Esempio n. 1
0
        public IActionResult GetMovies()
        {
            GetMovieResult res = new GetMovieResult();

            if (string.IsNullOrEmpty(MovieName))
            {
                res.Movie = AdministrationRepository.GetMovies();
            }
            else
            {
                res.Movie = AdministrationRepository.GetMoviesByName(MovieName);
            }
            res.MovieType = AdministrationRepository.GetMovieTypes();
            return(View(res));
        }