private void WritersInMovieHandler()
        {
            MoviePeopleServices writers        = new MoviePeopleServices();
            GridView            writersInMovie = new GridView();

            writersInMovie = PeopleInMovie1.gridPeopleInMovie;
            int movieId = Convert.ToInt32(Request.QueryString["movieId"]);
            List <MoviePersonDTO> person;

            person = writers.GetMoviePeopleByMovieId(movieId, "Writer");
            if (person != null)
            {
                writersInMovie.DataSource = person;
                writersInMovie.DataBind();
                GetAppropriateView(writersInMovie);
            }
            else
            {
                return;
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PeopleInMovie2.SetLabelText("Actors in " + "\"" + Request.QueryString["movieTitle"] + "\"" + " Movie");
            }
            MoviePeopleServices actors        = new MoviePeopleServices();
            GridView            actorsInMovie = new GridView();

            actorsInMovie = PeopleInMovie2.gridPeopleInMovie;
            int movieId = Convert.ToInt32(Request.QueryString["movieId"]);
            List <MoviePersonDTO> person;

            person = actors.GetMoviePeopleByMovieId(movieId, "Actor");
            if (person != null)
            {
                actorsInMovie.DataSource = person;
                actorsInMovie.DataBind();
                GetAppropriateView(actorsInMovie);
            }
            // actorsInMovie.DataSource = actors.GetMoviePeopleByMovieId(movieId, "Actor");
        }