Example #1
0
        public async Task <List <Call> > GetActiveCallsByDepartmentAsync(int departmentId)
        {
            var items = await _callsRepository.GetAllOpenCallsByDepartmentAsync(departmentId);

            if (items != null && items.Any())
            {
                return(items.ToList());
            }

            return(new List <Call>());
        }
Example #2
0
        public async Task <List <Call> > GetActiveCallsByDepartmentAsync(int departmentId)
        {
            var items = await _callsRepository.GetAllOpenCallsByDepartmentAsync(departmentId);

            return(items.ToList());
        }