Beispiel #1
0
        public async Task <List <Log> > GetAllLogsForDepartmentAndYearAsync(int departmentId, string year)
        {
            var logs = await _logsRepository.GetAllLogsByDepartmentIdYearAsync(departmentId, year);

            if (logs != null && logs.Any())
            {
                return(logs.ToList());
            }
            else
            {
                return(new List <Log>());
            }
        }