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