Class TenantController
Implements
Inherited Members
Namespace: Volo.Abp.TenantManagement
Assembly: Volo.Abp.TenantManagement.HttpApi.dll
Syntax
[Controller]
[RemoteService(true, Name = "AbpTenantManagement")]
[Area("multi-tenancy")]
[Route("api/multi-tenancy/tenants")]
public class TenantController : AbpControllerBase, IAvoidDuplicateCrossCuttingConcerns, ITenantAppService, ICrudAppService<TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>, ICrudAppService<TenantDto, TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>, IReadOnlyAppService<TenantDto, TenantDto, Guid, GetTenantsInput>, ICreateUpdateAppService<TenantDto, Guid, TenantCreateDto, TenantUpdateDto>, ICreateAppService<TenantDto, TenantCreateDto>, IUpdateAppService<TenantDto, Guid, TenantUpdateDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
TenantController(ITenantAppService)
Declaration
public TenantController(ITenantAppService tenantAppService)
Parameters
Type | Name | Description |
---|---|---|
ITenantAppService | tenantAppService |
Properties
TenantAppService
Declaration
protected ITenantAppService TenantAppService { get; }
Property Value
Type | Description |
---|---|
ITenantAppService |
Methods
CreateAsync(TenantCreateDto)
Declaration
[HttpPost]
public virtual Task<TenantDto> CreateAsync(TenantCreateDto input)
Parameters
Type | Name | Description |
---|---|---|
TenantCreateDto | input |
Returns
Type | Description |
---|---|
Task<TenantDto> |
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Route("{id}")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
DeleteDefaultConnectionStringAsync(Guid)
Declaration
[HttpDelete]
[Route("{id}/default-connection-string")]
public virtual Task DeleteDefaultConnectionStringAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetAsync(Guid)
Declaration
[HttpGet]
[Route("{id}")]
public virtual Task<TenantDto> GetAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<TenantDto> |
GetDefaultConnectionStringAsync(Guid)
Declaration
[HttpGet]
[Route("{id}/default-connection-string")]
public virtual Task<string> GetDefaultConnectionStringAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<string> |
GetListAsync(GetTenantsInput)
Declaration
[HttpGet]
public virtual Task<PagedResultDto<TenantDto>> GetListAsync(GetTenantsInput input)
Parameters
Type | Name | Description |
---|---|---|
GetTenantsInput | input |
Returns
Type | Description |
---|---|
Task<PagedResultDto<TenantDto>> |
UpdateAsync(Guid, TenantUpdateDto)
Declaration
[HttpPut]
[Route("{id}")]
public virtual Task<TenantDto> UpdateAsync(Guid id, TenantUpdateDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
TenantUpdateDto | input |
Returns
Type | Description |
---|---|
Task<TenantDto> |
UpdateDefaultConnectionStringAsync(Guid, string)
Declaration
[HttpPut]
[Route("{id}/default-connection-string")]
public virtual Task UpdateDefaultConnectionStringAsync(Guid id, string defaultConnectionString)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
string | defaultConnectionString |
Returns
Type | Description |
---|---|
Task |