Exemple #1
0
 public List <NearestPciCellView> QueryCells(int cellId, byte sectorId)
 {
     return
         (_repository.GetAllList(cellId, sectorId)
          .Select(
              x =>
              x.ConstructView(_eNodebRepository))
          .ToList());
 }
        public async Task <int> UpdateNeighbors(int cellId, byte sectorId)
        {
            var count        = 0;
            var neighborList = _neighborRepository.GetAllList(cellId, sectorId);

            foreach (var cell in neighborList)
            {
                count += await _repository.UpdateItemsAsync(cellId, sectorId, cell.Pci, cell.NearestCellId, cell.NearestSectorId);
            }
            return(_repository.SaveChanges() + count);
        }