public IActionResult MovieDetails(string email, string movieId) { AWSServices services = new AWSServices(dynamoDBClient, s3Client); return(View(new UserXMovie() { User = services.GetUser(email).Result, Movie = services.GetMovie(movieId).Result })); }
public IActionResult Movies(string email) { AWSServices services = new AWSServices(dynamoDBClient, s3Client); return(View("Movies", new UserXMovies() { User = services.GetUser(email).Result, Movies = services.GetMovies().Result })); }
public IActionResult AddComment(string email, string movieId) { AWSServices services = new AWSServices(dynamoDBClient, s3Client); return(View(new MovieXRating() { Movie = services.GetMovie(movieId).Result, User = services.GetUser(email).Result, Rating = new Rating() })); }