Search active role details in current tenant
Namespace: CelloSaaS.ServiceContracts.AccessControlManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- searchValue
- Type: System String
Search Role Name String
- tenantCode
- Type: System String
Tenant Code(Mandatory)
Return Value
Type: List RoleActive Role details in current tenant
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.AccessControlManagement RoleException | If db exception occurs |
System ArgumentNullException | If tenant id is null or empty |
Examples
public void SearchRolesInCurrentTenant() { string searchValue = "a"; string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; IRoleService roleService = ServiceLocator.Resolve>IRoleService<(); List<Role> roles = roleService.SearchRolesInCurrentTenant(searchValue, tenantCode); }
See Also