コード例 #1
0
        public async Task <List <PersonnelRole> > GetAllRolesForDepartmentAsync(int departmentId)
        {
            var items = await _personnelRolesRepository.GetAllByDepartmentIdAsync(departmentId);

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

            return(new List <PersonnelRole>());
        }
コード例 #2
0
        public async Task <List <PersonnelRole> > GetAllRolesForDepartmentAsync(int departmentId)
        {
            var items = await _personnelRolesRepository.GetAllByDepartmentIdAsync(departmentId);

            return(items.ToList());
        }