示例#1
0
        public List <Location> GetAllLocations()
        {
            List <Location> locations  = new List <Location>();
            List <int>      locationNr = reservationRepo.GetAllLocationNr();

            foreach (int number in locationNr)
            {
                locations.Add(new Location(number, reservationRepo.GetLocationFeatures(number), reservationRepo.GetLocationType(number)));
            }
            return(locations);
        }