TenantManager.cs 608 B

1234567891011121314151617181920212223242526
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Abp.Domain.Repositories;
  4. using WeApp.Authorization.Users;
  5. using WeApp.MultiTenancy;
  6. using IwbZero.MultiTenancy;
  7. namespace WeApp.MultiTenancy
  8. {
  9. public class TenantManager : IwbTenantManager<Tenant, User>
  10. {
  11. public TenantManager(
  12. IRepository<Tenant> tenantRepository
  13. )
  14. : base(
  15. tenantRepository
  16. )
  17. {
  18. }
  19. public async Task<List<Tenant>> GeTenants()
  20. {
  21. return await TenantRepository.GetAllListAsync();
  22. }
  23. }
  24. }