public void VanishCells(CdmaCellIdsContainer container) { foreach ( var cell in container.CellIdPairs.Select( cellIdPair => _cellRepository.GetBySectorIdAndCellType(cellIdPair.CellId, cellIdPair.SectorId, cellIdPair.CellType)) .Where(cell => cell != null)) { cell.IsInUse = false; _cellRepository.Update(cell); } _cellRepository.SaveChanges(); }
public void Put(CdmaCellIdsContainer container) { _service.VanishCells(container); }