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>()); }
public async Task <List <PersonnelRole> > GetAllRolesForDepartmentAsync(int departmentId) { var items = await _personnelRolesRepository.GetAllByDepartmentIdAsync(departmentId); return(items.ToList()); }