Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Session["VisibleItem"] = null;
            }

            MovieById.Movie = GetMovieById(550);
            MovieById.DataBind();
        }
Example #2
0
        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);
        }
Example #3
0
        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");
            }
        }