Ejemplo n.º 1
0
        public CdmaCompoundCellView QueryCell(int btsId, byte sectorId)
        {
            var onexCell = _repository.GetBySectorIdAndCellType(btsId, sectorId, "1X");
            var evdoCell = _repository.GetBySectorIdAndCellType(btsId, sectorId, "DO");

            return(CellQueries.ConstructView(onexCell, evdoCell, _btsRepository));
        }
Ejemplo n.º 2
0
        public IEnumerable <SectorView> QuerySectors(int btsId)
        {
            var cells = _repository.GetAllList(btsId);

            return(cells.Any()
                ? Mapper.Map <IEnumerable <CdmaCellView>, IEnumerable <SectorView> >(
                       cells.Select(x => CellQueries.ConstructView(x, _btsRepository)))
                : new List <SectorView>());
        }