public IEnumerable <IndoorDistribution> Query(string collegeName) { var ids = _repository.GetCollegeInfrastructureIds(collegeName, InfrastructureType.CdmaIndoor); var distributions = ids.Select(_indoorRepository.Get).Where(distribution => distribution != null).ToList(); return(distributions); }
public IEnumerable <Tuple <string, IEnumerable <AlarmStat> > > QueryCollegeENodebAlarms(string collegeName, DateTime begin, DateTime end) { var ids = _infrastructureRepository.GetCollegeInfrastructureIds(collegeName, InfrastructureType.ENodeb); return((from id in ids select _eNodebRepository.Get(id) into eNodeb where eNodeb != null let stats = _alarmRepository.GetAllList(begin, end, eNodeb.ENodebId) select new Tuple <string, IEnumerable <AlarmStat> >(eNodeb.Name, stats)).ToList()); }
public IEnumerable <CellPreciseKpiView> GetViews(string collegeName, DateTime begin, DateTime end) { var ids = _repository.GetCollegeInfrastructureIds(collegeName, InfrastructureType.Cell); var query = ids.Select(_cellRepository.Get).Where(cell => cell != null) .Select(x => CellPreciseKpiView.ConstructView(x, _eNodebRepository)).ToList(); foreach (var view in query) { view.UpdateKpi(_kpiRepository, begin, end); } return(query); }