Ejemplo n.º 1
0
        public IEnumerable <EscapeRoom> GetAllForOwner()
        {
            IEscapeRoom_Services Service = new MAPMAServiceLayers.EscRef.EscapeRoom_ServicesClient();
            List <EscapeRoom>    ERList  = new List <EscapeRoom>();
            EscapeRoom           tempER;

            foreach (var ER in Service.GetAllForOwner())
            {
                tempER = new EscapeRoom
                {
                    cleanTime    = ER.cleanTime,
                    description  = ER.description,
                    emp          = ER.emp,
                    escapeRoomID = ER.escapeRoomID,
                    checkList    = ER.checkList,
                    maxClearTime = ER.maxClearTime,
                    name         = ER.name,
                    price        = ER.price,
                    rating       = ER.rating
                };

                ERList.Add(tempER);
            }
            return(ERList);
        }
Ejemplo n.º 2
0
        public EscapeRoom GetForOwner(int ER_ID)
        {
            IEscapeRoom_Services Service = new MAPMAServiceLayers.EscRef.EscapeRoom_ServicesClient();
            EscapeRoom           ER;

            ER = Service.GetForOwner(ER_ID);
            return(ER);
        }