Exemple #1
0
        public GetAllMoviesResponse GetAllMovies()
        {
            GetAllMoviesResponse response = new GetAllMoviesResponse()
            {
                IsSuccess = true
            };

            try
            {
                response.MoviesList = MoviesManager.GetAllMovies().OrderByDescending(x => x.Id).ToList();
            }
            catch (Exception e)
            {
                response.IsSuccess    = false;
                response.ErrorMessage = e.Message;
            }
            return(response);
        }
 public IActionResult Index()
 {
     return(View(movies.GetAllMovies()));
 }
Exemple #3
0
        public IActionResult Index()
        {
            var criterion = new CriteriaManager();

            return(View((criterion.GetSelectedCriterion().ApplyCriterion(10), movies.GetAllMovies())));
        }
Exemple #4
0
 public IActionResult TicketMovie()
 {
     return(View((movies.GetAllMovies(), -1)));
 }