ILicenseService UpdateTenantLicense Method CelloSaaS API Documentation
Updates the given tenant's subscription license

Namespace: CelloSaaS.ServiceContracts.LicenseManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

string UpdateTenantLicense(
	TenantLicense tenantLicense
)

Parameters

tenantLicense
Type: CelloSaaS.Model.LicenseManagement TenantLicense
Tenant License Details(Mandatory - Tenant Identifier, Package Identifier)

Return Value

Type: String
The Tenant License Id
Exceptions

ExceptionCondition
System ArgumentExceptionThrows Argument Exception
System UnauthorizedAccessExceptionThrows UnauthorizedAccessException if user don't have update tenant license permission
CelloSaaS.ServiceContracts.LicenseManagement LicenseExceptionThrows LicenseException if any errors occurs in module license validate
Examples

public void UpdateTenantLicense()
{
    TenantLicense tenantLicense = new TenantLicense();
    tenantLicense.TenantLicenseCode = "196078AF-7844-4391-AB59-38FEA2E5AB0E";
    tenantLicense.TenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    tenantLicense.PackageId = "A8174FD7-808F-4CB1-A3E4-F3013684DEEE";
    tenantLicense.NumberOfUsers = 150;
    tenantLicense.ValidityStart = DateTime.Now;
    ILicenseService licenseService = ServiceLocator.Resolve<ILicenseService>();
    string tenantLicenseId = licenseService.InsertTenantLicense(tenantLicense);
}
See Also