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)); }
public bool DumpSingleCellExcel(CdmaCellExcel info) { var cell = _cellRepository.GetBySectorIdAndCellType(info.BtsId, info.SectorId, info.CellType); if (cell == null) { cell = Mapper.Map <CdmaCellExcel, CdmaCell>(info); cell.Import(info); _cellRepository.SaveChanges(); return(_cellRepository.Insert(cell) != null); } cell.Import(info); cell.IsInUse = true; _cellRepository.Update(cell); _cellRepository.SaveChanges(); return(true); }