示例#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);
        }
示例#2
0
 public IActionResult Index()
 {
     return(View(movies.GetAllMovies()));
 }
示例#3
0
        public IActionResult Index()
        {
            var criterion = new CriteriaManager();

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