Exemplo n.º 1
0
 private void GetPersonInfo(string firstName, string lastName)
 {
     MoviePeopleServices personInfo = new MoviePeopleServices();
     List<MoviePersonDTO> actorToShow = new List<MoviePersonDTO>();
     MoviePersonDTO actor = personInfo.GetMoviePersonByName(firstName + " " + lastName, "Producer");
     Guid personId = personInfo.GetMoviePersonIdByFirstAndLastName(firstName, lastName);
     actorToShow.Add(actor);
     ShowPersonFullInfo(actorToShow, personId);
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            MoviePeopleServices personInfo = new MoviePeopleServices();
            MoviePersonDTO person = personInfo.GetMoviePersonByName(Request.QueryString["personToShow"].ToString(),
                Request.QueryString["personType"]);
            if (person != null)
            {

                Guid personId = personInfo.GetMoviePersonIdByFirstAndLastName(person.FirstName, person.LastName);
                ShowPersonFullInfo(person, personId);

            }
        }
Exemplo n.º 3
0
        private void ActorFoundByNameHandler()
        {
            MoviePeopleServices personInfo = new MoviePeopleServices();
               List<MoviePersonDTO> actorToShow = new List<MoviePersonDTO>();
               MoviePersonDTO actor = personInfo.GetMoviePersonByName(Request.QueryString["personToShow"].ToString(), "Actor");
               if (actor != null)
               {

                   Guid personId = personInfo.GetMoviePersonIdByFirstAndLastName(actor.FirstName, actor.LastName);
                   actorToShow.Add(actor);
                   ShowPersonFullInfo(actorToShow, personId);

               }
        }
Exemplo n.º 4
0
        private void producerFoundByNameHandler()
        {
            MoviePeopleServices personInfo = new MoviePeopleServices();
            List<MoviePersonDTO> producerToShow = new List<MoviePersonDTO>();
            MoviePersonDTO producer = personInfo.GetMoviePersonByName(Request.QueryString["personToShow"].ToString(), "Producer");
            if (producer != null)
            {

                Guid personId = personInfo.GetMoviePersonIdByFirstAndLastName(producer.FirstName, producer.LastName);
               producerToShow.Add(producer);
                ShowPersonFullInfo(producerToShow, personId);

            }
        }
Exemplo n.º 5
0
 private void DirectorFoundByNameHandler()
 {
     MoviePeopleServices personInfo = new MoviePeopleServices();
        List<MoviePersonDTO> directorToShow = new List<MoviePersonDTO>();
        MoviePersonDTO director = personInfo.GetMoviePersonByName(Request.QueryString["personToShow"].ToString(), "Director");
        if (director != null)
        {
            Guid personId = personInfo.GetMoviePersonIdByFirstAndLastName(director.FirstName, director.LastName);
            directorToShow.Add(director);
            ShowPersonFullInfo(directorToShow, personId);
            //GridView directorFoundByName = new GridView();
            //directorFoundByName = PeopleInMovie1.gridPeopleInMovie;
            //directorFoundByName.DataSource = directorToShow;
            //directorFoundByName.DataBind();
            //GetAppropriateView(directorFoundByName);
            //PeopleInMovie1.PersonImage.ImageUrl = String.Format("~/ContentPages/MoviePeople/MoviePeopleUserControls/MoviePersonPhoto.ashx?personId=" + personId);
        }
        //actorToShow.Add(Request.QueryString["personToShow"]);
 }
Exemplo n.º 6
0
 private void GetPersonInfo(string firstName, string lastName)
 {
     MoviePeopleServices personInfo = new MoviePeopleServices();
     List<MoviePersonDTO> composerToShow = new List<MoviePersonDTO>();
     MoviePersonDTO composer = personInfo.GetMoviePersonByName(firstName + " " + lastName, "Composer");
     Guid personId = personInfo.GetMoviePersonIdByFirstAndLastName(firstName, lastName);
     composerToShow.Add(composer);
     ShowPersonFullInfo(composerToShow, personId);
 }