Open Closed

Retrieve current Tenant name #11212


0
Mitch created

Is there a simple way of retrieving the current Tenant name either directly into a View or Controller?

(MVC DotNet Core)


1 Answer(s)
  • 1
    edarib created

    You can use: var tenant = await TenantManager.GetByIdAsync((int)AbpSession.TenantId);

    You can then get tenant.tenancyName