public virtual async Task <SaasTenantDto> CreateAsync(SaasTenantCreateDto input)
        {
            var tenant = await TenantManager.CreateAsync(input.Name, input.EditionId);

            await TenantRepository.InsertAsync(tenant);

            using (CurrentTenant.Change(tenant.Id, tenant.Name))
            {
                //TODO: Handle database creation?

                await DataSeeder.SeedAsync(
                    new DataSeedContext(tenant.Id)
                    .WithProperty("AdminEmail", input.AdminEmailAddress)
                    .WithProperty("AdminPassword", input.AdminPassword)
                    );
            }

            return(ObjectMapper.Map <SaasTenant, SaasTenantDto>(tenant));
        }
 public virtual Task <SaasTenantDto> CreateAsync(SaasTenantCreateDto input)
 {
     //ValidateModel();
     return(TenantAppService.CreateAsync(input));
 }