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