Beispiel #1
0
        public IEnumerable <CellView> GetViews(string collegeName)
        {
            var ids   = _repository.GetCellIds(collegeName);
            var query = ids.Select(_cellRepository.Get).Where(cell => cell != null).ToList();

            return(query.Any()
                ? query.Select(x => CellView.ConstructView(x, _eNodebRepository))
                : null);
        }
Beispiel #2
0
        public IEnumerable <CellPreciseKpiView> GetViews(string collegeName, DateTime begin, DateTime end)
        {
            var ids   = _repository.GetCellIds(collegeName);
            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);
        }