protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Session["VisibleItem"] = null; } MovieById.Movie = GetMovieById(550); MovieById.DataBind(); }
public static void DeleteMovies() { var movieFound = MovieById.FindMovieById(); if (movieFound != null) { bllFacade.MovieServices.Delete(movieFound.ID); } var response = movieFound == null ? "Movie not found" : "Movie was deleted"; WriteLine(response); }
public static void editMovies() { var movieFound = MovieById.FindMovieById(); if (movieFound != null) { WriteLine("Movie name: "); movieFound.VideoName = ReadLine(); WriteLine("Genre"); movieFound.Genre = ReadLine(); bllFacade.MovieServices.Update(movieFound); } else { WriteLine("Movie not found"); } }