예제 #1
0
        public List <EntitiesLayer.Territory> GetTerritories()
        {
            List <EntitiesLayer.Territory> list = new List <EntitiesLayer.Territory>();

            DataAccessLayer.BddGameOfThronesEntities bdd = new BddGameOfThronesEntities();

            foreach (DataAccessLayer.Territories te in bdd.Territories)
            {
                list.Add(GetTerritory(te, bdd));
            }

            return(list);
        }
예제 #2
0
        public List <EntitiesLayer.Character> GetCharacters()
        {
            List <EntitiesLayer.Character> list = new List <EntitiesLayer.Character>();

            DataAccessLayer.BddGameOfThronesEntities bdd = new BddGameOfThronesEntities();

            foreach (DataAccessLayer.Characters ch in bdd.Characters)
            {
                list.Add(GetCharacter(ch));
            }

            return(list);
        }
예제 #3
0
        public List <EntitiesLayer.House> GetHouses()
        {
            List <EntitiesLayer.House> list = new List <EntitiesLayer.House>();

            DataAccessLayer.BddGameOfThronesEntities bdd = new BddGameOfThronesEntities();

            foreach (DataAccessLayer.Houses ho in bdd.Houses)
            {
                list.Add(GetHouse(ho));
            }

            return(list);
        }