This commit is contained in:
2020-06-17 23:36:01 +00:00
parent c1efb235fe
commit 878d9dd772
3 changed files with 10 additions and 10 deletions

View File

@@ -35,9 +35,9 @@ namespace rockfishCore.Controllers
[Required]
public bool LicenseExpires { get; set; }
[Required]
public long LicenseExpiration { get; set; }
public long LicenseExpirationDate { get; set; }
[Required]
public long MaintenanceExpiration { get; set; }
public long MaintenanceExpirationDate { get; set; }
[Required]
public List<dtoLicenseFeature> Features { get; set; }
[Required]
@@ -108,8 +108,8 @@ namespace rockfishCore.Controllers
newLicense.RegisteredTo = l.RegisteredTo;
newLicense.DbId = l.DbId;
newLicense.LicenseExpiration = DateUtil.EpochToDate(l.LicenseExpiration);
newLicense.MaintenanceExpiration = DateUtil.EpochToDate(l.MaintenanceExpiration);
newLicense.LicenseExpiration = DateUtil.EpochToDate(l.LicenseExpirationDate);
newLicense.MaintenanceExpiration = DateUtil.EpochToDate(l.MaintenanceExpirationDate);
foreach (dtoLicenseFeature f in l.Features)
{
newLicense.Features.Add(new RavenKeyFactory.LicenseFeature() { Feature = f.Feature, Count = f.Count });