public static async Task <ITenantDetail> ByTenantIdAsync(this ITenantDetailCollection tenants, Guid tenantId)
 {
     return(await tenants.ByTenantIdAsync(tenantId.ToString()));
 }
 /// <summary>
 /// Returns the tenant from the current tenants collection with the given tenant id.
 /// </summary>
 /// <param name="tenantId">The object ID of the tenant to return.</param>
 public static ITenantDetail ByTenantId(this ITenantDetailCollection tenants, string tenantId)
 {
     return(AsyncHelper.RunSync(async() => await tenants.ByTenantIdAsync(tenantId)));
 }