Interface IOrganizationService
organization service definition
Inherited Members
Namespace: Simplic.TenantSystem
Assembly: Simplic.TenantSystem.dll
Syntax
public interface IOrganizationService : IOrganizationRepository
Properties
| Improve this Doc View SourceMode
Gets or sets the organization mode
Declaration
OrganizationMode Mode { get; set; }
Property Value
Type | Description |
---|---|
OrganizationMode |
Methods
| Improve this Doc View SourceCreateOrGetGroup(IList<Organization>)
Create or get tenant by tenant group
Declaration
Guid CreateOrGetGroup(IList<Organization> Organizations)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<Organization> | Organizations | List of organizations |
Returns
Type | Description |
---|---|
System.Guid | New organization id |
GetAvailableOrganizations(Int32)
Get all available organizations
Declaration
IEnumerable<Organization> GetAvailableOrganizations(int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | userId | Unique user id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Organization> | Enumerable of organizations |