Пример #1
0
        public async Task <List <Log> > GetLogsForCallAsync(int callId)
        {
            var logs = await _logsRepository.GetLogsForCallAsync(callId);

            if (logs != null && logs.Any())
            {
                var items = logs.ToList();

                for (int i = 0; i < items.Count; i++)
                {
                    items[i] = await PopulateLogData(items[i], true, true);
                }

                return(items);
            }

            return(new List <Log>());
        }
Пример #2
0
        public async Task <List <Log> > GetLogsForCallAsync(int callId)
        {
            var logs = await _logsRepository.GetLogsForCallAsync(callId);

            return(logs.ToList());
        }