Example #1
0
 // Method UpdateGenre
 #region Method UpdateGenre.
 public static void UpdateGenre(int id, string newGenre)
 {
     // Calling the method from DalManager.
     DalManager.UpdateGenre(id, newGenre);
 }
Example #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);
 }
Example #3
0
 // Method UpdateFilm
 #region Method UpdateFilm.
 public static void UpdateFilm(int id, string newTitle)
 {
     // Calling the method from DalManager.
     DalManager.UpdateFilm(id, newTitle);
 }
Example #4
0
 // Method InsertFilm
 #region Method InsertFilm.
 public static Film InsertFilm(Film f)
 {
     // Calling the method from DalManager.
     return(DalManager.InsertFilm(f));
 }
Example #5
0
 // Method InsertGenre
 #region Method InsertGenre.
 public static Genre InsertGenre(Genre g)
 {
     // Calling the method from DalManager.
     return(DalManager.InsertGenre(g));
 }
Example #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));
 }
Example #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());
 }
Example #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());
 }
Example #9
0
 // Method DeleteGenre
 #region Method DeleteGenre.
 public static void DeleteGenre(int id)
 {
     // Calling the method from DalManager.
     DalManager.DeleteGenre(id);
 }
Example #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());
 }