Class TenantController
- Namespace
- Oqtane.Controllers
- Assembly
- Oqtane.Server.dll
[Route("api/[controller]")]
public class TenantController : Controller
- Inheritance
-
TenantController
Constructors
TenantController(ITenantRepository)
public TenantController(ITenantRepository tenants)
Parameters
tenants
ITenantRepository
Methods
Get()
[HttpGet]
[Authorize(Roles = "Host Users")]
public IEnumerable<Tenant> Get()
Returns
- IEnumerable<Tenant>
Get(int)
[HttpGet("{id}")]
[Authorize(Roles = "Host Users")]
public Tenant Get(int id)
Parameters
id
int
Returns
- Tenant