public MoviesController(MovieCatalogue catalog = null, MovieRepository repository = null)
 {
     _movieCatalogue = catalog ?? new MovieCatalogue();
       _movieRepository = repository ?? new MovieRepository();
 }
Exemple #2
0
 public static Movie Get(MovieRepository movieRepository, int id)
 {
     return movieRepository.GetMovie(id);
 }
 public MoviesController()
 {
     _movieCatalogue = new MovieCatalogue();
       _movieRepository = new MovieRepository();
 }
Exemple #4
0
 public static Movie Create(MovieRepository movieRepository, Movie movie)
 {
     return movieRepository.AddMovie(movie);
 }