示例#1
0
 public MovieRepository GetMovieRepository()
 {
     if (movieRepo == null) {
         movieRepo = new MovieRepository();
     }
     return movieRepo;
 }
示例#2
0
 /*public Facade(MovieShopContext context = null)
 {
     ctx = context != null ? context : new MovieShopContextDev();
 }
 */
 public MovieRepository GetMovieRepository()
 {
     return movieRepo = new MovieRepository(ctx);
 }