Esempio n. 1
0
 public ActionResult Delete(Movie movie)
 {
     facade.GetMovieGateway().Delete(movie);
     return Redirect("Index");
 }
Esempio n. 2
0
 public ActionResult Edit(Movie movie)
 {
     facade.GetMovieGateway().Update(movie);
     return Redirect("Index");
 }
Esempio n. 3
0
 public ActionResult Create(Movie movie)
 {
     movie.Genre = facade.GetGenreGateway().ReadById(movie.Genre.Id);
     facade.GetMovieGateway().Add(movie);
     return Redirect("Index");
 }