Ejemplo n.º 1
0
 public List <Model.Hall> FindHalls(int mId)
 {
     using (PersonServiceClient proxy = new PersonServiceClient())
     {
         List <Hall>       halls = proxy.FindHalls(mId);
         List <Model.Hall> mH    = new List <Model.Hall>();
         foreach (Hall tempH in halls)
         {
             Model.Hall h = new Model.Hall();
             h.HallId   = tempH.HallId;
             h.MovieId  = tempH.MovieId;
             h.ShowDate = tempH.ShowDate;
             h.ShowTime = tempH.ShowTime;
             mH.Add(h);
         }
         return(mH);
     }
 }
Ejemplo n.º 2
0
        internal List <Model.Hall> FindHalls(int movieId)
        {
            using (PersonServiceClient proxy = new PersonServiceClient())
            {
                List <Model.Hall> halls = new List <Model.Hall>();
                List <Hall>       hS    = proxy.FindHalls(movieId);
                foreach (Hall h in hS)
                {
                    Model.Hall hall = new Model.Hall();
                    hall.HallId   = h.HallId;
                    hall.MovieId  = h.MovieId;
                    hall.ShowTime = h.ShowTime;

                    halls.Add(hall);
                }

                return(halls);
            }
        }