public IEnumerable<CdmaBtsView> QueryBtsViews(ENodebRangeContainer container) { var btss = _btsRepository.GetAllList(container.West, container.East, container.South, container.North) .Where(x => x.IsInUse) .ToList(); var excludedBtss = from bts in btss join id in container.ExcludedIds on bts.BtsId equals id select bts; btss = btss.Except(excludedBtss).ToList(); return btss.Any() ? btss.MapTo<IEnumerable<CdmaBtsView>>() : new List<CdmaBtsView>(); }
public IEnumerable<ENodebView> QueryENodebViews(ENodebRangeContainer container) { var eNodebs = _eNodebRepository.GetAllList(container.West, container.East, container.South, container.North) .Where(x => x.IsInUse) .ToList(); var excludedENodebs = from eNodeb in eNodebs join id in container.ExcludedIds on eNodeb.ENodebId equals id select eNodeb; eNodebs = eNodebs.Except(excludedENodebs).ToList(); return eNodebs.Any() ? eNodebs.MapTo<IEnumerable<ENodebView>>() : new List<ENodebView>(); }
public IEnumerable <CdmaBtsView> QueryBtsViews(ENodebRangeContainer container) { var btss = _btsRepository.GetAllList(container.West, container.East, container.South, container.North) .Where(x => x.IsInUse) .ToList(); var excludedBtss = from bts in btss join id in container.ExcludedIds on bts.BtsId equals id select bts; btss = btss.Except(excludedBtss).ToList(); return(btss.Any() ? btss.MapTo <IEnumerable <CdmaBtsView> >() : new List <CdmaBtsView>()); }
public IEnumerable <ENodebView> QueryENodebViews(ENodebRangeContainer container) { var eNodebs = _eNodebRepository.GetAllList(x => x.Longtitute >= container.West && x.Longtitute <= container.East && x.Lattitute >= container.South && x.Lattitute <= container.North) .Where(x => x.IsInUse) .ToList(); var excludedENodebs = from eNodeb in eNodebs join id in container.ExcludedIds on eNodeb.ENodebId equals id select eNodeb; eNodebs = eNodebs.Except(excludedENodebs).ToList(); return(eNodebs.Any() ? eNodebs.MapTo <IEnumerable <ENodebView> >() : new List <ENodebView>()); }
public IEnumerable<ENodebView> Post(ENodebRangeContainer container) { return _service.QueryENodebViews(container); }
public IEnumerable <ENodebView> Post(ENodebRangeContainer container) { return(_service.QueryENodebViews(container)); }