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