예제 #1
0
 public static bool RemoveActor(string id)
 {
     if (Int32.TryParse(id, out int intId))
     {
         DalManager.RemoveActor(intId);
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 //Edit.
 public static void UpdateMovie(Movie m)
 {
     DalManager.UpdateMovie(m);
 }
예제 #3
0
 public static void AddGenre(string genreName)
 {
     DalManager.InsertGenre(genreName);
 }
예제 #4
0
 //If titleSearch is not definded then it is set to null
 public static List <Movie> OutputMovies()
 {
     return(DalManager.GetMoviesFromTitle(null));
 }
예제 #5
0
 public static Movie AddMovie(Movie m)
 {
     return(DalManager.InsertMovie(m));
 }
예제 #6
0
 //Add to the db.
 public static Actor AddActor(Actor a)
 {
     return(DalManager.InsertActor(a));
 }
예제 #7
0
 public static StringBuilder OutputGenreFromGenre()
 {
     return(GenreListToStringBuilder(DalManager.GetAllGenre()));
 }
예제 #8
0
 public static StringBuilder OutputMoviesFromGenre(string genreSearch = null)
 {
     return(MoviesListToStrinBuilder(DalManager.GetMoviesFromGenre(genreSearch)));
 }
예제 #9
0
 public static StringBuilder OutputActorsFromLastname(string nameSearch = null)
 {
     return(ActorListToStringBuilder(DalManager.GetActorsFromLastname(nameSearch)));
 }
예제 #10
0
 public static StringBuilder OutputMoviesFromTitle(string titleSearch = null)
 {
     return(MoviesListToStrinBuilder(DalManager.GetMoviesFromTitle(titleSearch)));
 }
예제 #11
0
 public static bool RemoveGenre(string genreName)
 {
     DalManager.RemoveGenre(genreName);
     return(true);
 }
예제 #12
0
 public static void UpdateGenre(string oldGenreName, string newGenreName)
 {
     DalManager.UpdateGenre(oldGenreName, newGenreName);
 }
예제 #13
0
 public static void UpdateActor(Actor a)
 {
     DalManager.UpdateActor(a);
 }