示例#1
0
        public IEnumerable <MetricDataPoint> GetDataPointsForPeriod(int companyId, int year, int?month, int[] myMetricIds)
        {
            var results = _metricRepository.GetDataPointsForPeriod(companyId, year, month);

            // ensure we only return data for metrics the user is allowed to access
            return(results.Where(m => myMetricIds.Contains(m.MetricId)).ToList());
        }