public ActionResult Index()
 {
     Facade fac = new Facade();
     Movie mov = new Movie() { ID = 1, Title = "Title", price = 2020, Year = DateTime.Now };
     fac.GetMovieRepository().Add(mov);
     return View(fac.GetMovieRepository().GetAllMovies());
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     Movie mov = new Movie() { ID = 1, Title = "Title", price = 2020, Year = DateTime.Now };
     Facade fac = new Facade();
     fac.GetMovieRepository().Add(mov);
 }