Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Retrieve current Tenant name #11212


User avatar
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)
  • User Avatar
    1
    edarib created

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

    You can then get tenant.tenancyName