|
|
|
@ -1,6 +1,5 @@ |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
|
|
|
|
namespace LINGYUN.Abp.MultiTenancy.Editions; |
|
|
|
@ -20,18 +19,12 @@ public class EditionConfigurationProvider : IEditionConfigurationProvider, ITran |
|
|
|
if (tenantId.HasValue) |
|
|
|
{ |
|
|
|
var editionInfo = await EditionStore.FindByTenantAsync(tenantId.Value); |
|
|
|
if (editionInfo == null) |
|
|
|
if (editionInfo != null) |
|
|
|
{ |
|
|
|
throw new BusinessException( |
|
|
|
code: "LINGYUN.Abp.MultiTenancy.Editions:010001", |
|
|
|
message: "Edition not found!", |
|
|
|
details: "There is no edition with the tenant: " + tenantId |
|
|
|
); |
|
|
|
edition = new EditionConfiguration( |
|
|
|
editionInfo.Id, |
|
|
|
editionInfo.DisplayName); |
|
|
|
} |
|
|
|
|
|
|
|
edition = new EditionConfiguration( |
|
|
|
editionInfo.Id, |
|
|
|
editionInfo.DisplayName); |
|
|
|
} |
|
|
|
|
|
|
|
return edition; |
|
|
|
|