Ejemplo n.º 1
0
        public async Task <List <Log> > GetAllLogsForDepartmentAsync(int departmentId)
        {
            var logs = await _logsRepository.GetAllByDepartmentIdAsync(departmentId);

            if (logs != null && logs.Any())
            {
                return(logs.ToList());
            }
            else
            {
                return(new List <Log>());
            }
        }
Ejemplo n.º 2
0
        public async Task <List <Log> > GetAllLogsForDepartmentAsync(int departmentId)
        {
            var calls = await _logsRepository.GetAllByDepartmentIdAsync(departmentId);

            return(calls.ToList());
        }