// Method UpdateGenre #region Method UpdateGenre. public static void UpdateGenre(int id, string newGenre) { // Calling the method from DalManager. DalManager.UpdateGenre(id, newGenre); }
// 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); }
// Method UpdateFilm #region Method UpdateFilm. public static void UpdateFilm(int id, string newTitle) { // Calling the method from DalManager. DalManager.UpdateFilm(id, newTitle); }
// Method InsertFilm #region Method InsertFilm. public static Film InsertFilm(Film f) { // Calling the method from DalManager. return(DalManager.InsertFilm(f)); }
// Method InsertGenre #region Method InsertGenre. public static Genre InsertGenre(Genre g) { // Calling the method from DalManager. return(DalManager.InsertGenre(g)); }
// 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)); }
//Method that returns the genres from the DalManager. #region MethodReturnGenre. public static List <Genre> ReturnGenre() { // Calling the method from DalManager. return(DalManager.GetGenre()); }
//Method that returns the actors from the DalManager. #region Method ReturnActors. public static List <Actor> ReturnActors() { // Calling the method from DalManager. return(DalManager.GetActors()); }
// Method DeleteGenre #region Method DeleteGenre. public static void DeleteGenre(int id) { // Calling the method from DalManager. DalManager.DeleteGenre(id); }
// Method that returns the movies from the DalManager. #region Method ReturnFilms. public static List <Film> ReturnFilms() { // Calling the method from DalManager. return(DalManager.GetFilms()); }