コード例 #1
0
        private List <Room> GetAllRooms()
        {
            List <Room> rooms = new List <Room>();
            var         dtos  = _containerDAL.GetAllRooms();

            foreach (var d in dtos)
            {
                rooms.Add(ExtractRoom(d));
            }

            return(rooms);
        }
コード例 #2
0
        public List <Room> GetAllRooms()
        {
            List <Room> rooms = new List <Room>();
            var         dtos  = containerDAL.GetAllRooms();

            foreach (var d in dtos)
            {
                rooms.Add(ExtractRoom(d));
            }
            Rooms = rooms;
            return(rooms);
        }