Exemplo n.º 1
0
        public List <Sector> GetAllSectors()
        {
            var sectors    = new List <Sector>();
            var sectorDTOs = _sectorDAL.GetAll();

            foreach (var sectorDTO in sectorDTOs)
            {
                sectors.Add(new Sector(sectorDTO));
            }

            return(sectors);
        }
Exemplo n.º 2
0
        public static List <Sector> GetAll(int limit = -1)
        {
            List <SectorDTO> sectorsDto = SectorDAL.GetAll(limit);

            List <Sector> sectors = new List <Sector>();

            foreach (SectorDTO sector in sectorsDto)
            {
                sectors.Add(new Sector(sector));
            }

            return(sectors);
        }