예제 #1
0
        public List <DateBasedStatistics> GetSipStatistics(DateTime startDate, DateTime endDate, Guid userId)
        {
            var user          = _sipAccountRepository.GetById(userId);
            var callHistories = user != null?_callHistoryRepository.GetCallHistoriesForRegisteredSip(startDate, endDate, user.UserName) : new List <CallHistory>();

            var sipStatistics = GenerateDateBasedStatisticses(callHistories, startDate, endDate)
                                .OrderBy(s => s.Date)
                                .ToList();

            return(sipStatistics);
        }
예제 #2
0
 public SipAccount GetById(Guid id)
 {
     return(_sipAccountRepository.GetById(id));
 }
예제 #3
0
 public SipAccount GetById(Guid id)
 {
     return(_internalRepository.GetById(id));
 }