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())); }
public IActionResult Index() { var criterion = new CriteriaManager(); return(View((criterion.GetSelectedCriterion().ApplyCriterion(10), movies.GetAllMovies()))); }
public IActionResult TicketMovie() { return(View((movies.GetAllMovies(), -1))); }