public IList <DateBasedStatistics> GetCodecTypeStatistics(DateTime startDate, DateTime endDate, Guid codecTypeId) { var codecTypeStatistics = new List <DateBasedStatistics>(); var callHistories = _callHistoryRepository.GetCallHistoriesForCodecType(startDate, endDate, codecTypeId); if (callHistories == null) { return(codecTypeStatistics); } codecTypeStatistics.AddRange(GenerateDateBasedStatisticses(callHistories, startDate, endDate)); return(codecTypeStatistics.OrderBy(c => c.Date).ToList()); }
public IList <CallHistory> GetCallHistoriesForCodecType(DateTime startDate, DateTime endDate, Guid codecTypeId) { return(_internalRepository.GetCallHistoriesForCodecType(startDate, endDate, codecTypeId)); }