Beispiel #1
0
 // Method UpdateGenre
 #region Method UpdateGenre.
 public static void UpdateGenre(int id, string newGenre)
 {
     // Calling the method from DalManager.
     DalManager.UpdateGenre(id, newGenre);
 }
Beispiel #2
0
 // Update
 #region Update Actor, Film, Genre.
 // Method UpdateActor
 #region Method UpdateActor.
 public static void UpdateActor(int id, string newName)
 {
     // Calling the method from DalManager.
     DalManager.UpdateActor(id, newName);
 }
Beispiel #3
0
 // Method UpdateFilm
 #region Method UpdateFilm.
 public static void UpdateFilm(int id, string newTitle)
 {
     // Calling the method from DalManager.
     DalManager.UpdateFilm(id, newTitle);
 }
Beispiel #4
0
 // Method InsertFilm
 #region Method InsertFilm.
 public static Film InsertFilm(Film f)
 {
     // Calling the method from DalManager.
     return(DalManager.InsertFilm(f));
 }
Beispiel #5
0
 // Method InsertGenre
 #region Method InsertGenre.
 public static Genre InsertGenre(Genre g)
 {
     // Calling the method from DalManager.
     return(DalManager.InsertGenre(g));
 }
Beispiel #6
0
 // Methods Part two.
 // Insert.
 #region Insert Actor, Film, Genre.
 #region Method InsertActor.
 public static Actor InsertActor(Actor a)
 {
     // Calling the method from DalManager.
     return(DalManager.InsertActor(a));
 }
Beispiel #7
0
 //Method that returns the genres from the DalManager.
 #region MethodReturnGenre.
 public static List <Genre> ReturnGenre()
 {
     // Calling the method from DalManager.
     return(DalManager.GetGenre());
 }
Beispiel #8
0
 //Method that returns the actors from the DalManager.
 #region Method ReturnActors.
 public static List <Actor> ReturnActors()
 {
     // Calling the method from DalManager.
     return(DalManager.GetActors());
 }
Beispiel #9
0
 // Method DeleteGenre
 #region Method DeleteGenre.
 public static void DeleteGenre(int id)
 {
     // Calling the method from DalManager.
     DalManager.DeleteGenre(id);
 }
Beispiel #10
0
 // Method that returns the movies from the DalManager.
 #region Method ReturnFilms.
 public static List <Film> ReturnFilms()
 {
     // Calling the method from DalManager.
     return(DalManager.GetFilms());
 }