public async Task <Tenant> GetTenantAsync(Guid tenantId) { if (tenantId == Guid.Empty) { throw new ArgumentNullException(nameof(tenantId)); } var tenant = await tenantSQLService.GetTenantAsync(tenantId); if (tenant == null) { throw new NullReferenceException(); //create sql referance not found exception } return(tenant); }
public async Task GetTenantAsync() { this.tenant.TenantId = Guid.NewGuid(); var tenant = await tenantDataService.GetTenantAsync(this.tenant.TenantId); }