Exemple #1
0
        public List <DateBasedStatistics> GetRegionStatistics(DateTime startDate, DateTime endDate, Guid regionId)
        {
            var callHistories = _callHistoryRepository.GetCallHistoriesForRegion(startDate, endDate, regionId);

            if (callHistories == null)
            {
                return(new List <DateBasedStatistics>());
            }

            var regionStatistics = GenerateDateBasedStatisticses(callHistories, startDate, endDate);

            return(regionStatistics.OrderBy(r => r.Date).ToList());
        }
 public IList <CallHistory> GetCallHistoriesForRegion(DateTime startDate, DateTime endDate, Guid regionId)
 {
     return(_internalRepository.GetCallHistoriesForRegion(startDate, endDate, regionId));
 }