public void VanishBtss(ENodebIdsContainer container) { foreach ( var bts in container.ENodebIds.Select(btsId => _btsRepository.GetByBtsId(btsId)) .Where(bts => bts != null)) { bts.IsInUse = false; _btsRepository.Update(bts); } _btsRepository.SaveChanges(); }
public void VanishENodebs(ENodebIdsContainer container) { foreach ( var eNodeb in container.ENodebIds.Select(eNodebId => _eNodebRepository.FirstOrDefault(x => x.ENodebId == eNodebId)) .Where(eNodeb => eNodeb != null)) { eNodeb.IsInUse = false; _eNodebRepository.Update(eNodeb); } _eNodebRepository.SaveChanges(); }
public void VanishENodebs(ENodebIdsContainer container) { foreach ( var eNodeb in container.ENodebIds.Select(eNodebId => _eNodebRepository.GetByENodebId(eNodebId)) .Where(eNodeb => eNodeb != null)) { eNodeb.IsInUse = false; _eNodebRepository.Update(eNodeb); } _eNodebRepository.SaveChanges(); }
public void Put(ENodebIdsContainer container) { _service.VanishENodebs(container); }
public void Put(ENodebIdsContainer container) { _service.VanishBtss(container); }