//get all movies public IHttpActionResult Get() { MovieServices movieService = CreateMovieService(); var movies = movieService.GetMovies(); return(Ok(movies)); }
public ActionResult Index(string user) { var model = new MovieModel { Movies = _movie.GetMovies(), LoggedIn = user != null ? true : false, User = (user != null ? true : false) == true?_account.GetUserDetails(user) : null }; return(View(model)); }
public IActionResult ShowMovie() { MovieDataServices movieDataServices = new MovieDataServices(); MovieServices movieServices = new MovieServices(movieDataServices); List <MovieModel> movies = movieServices.GetMovies(); ListOfMovies movieList = new ListOfMovies(); movieList.Movies = movies; return(View(movieList)); }