From 478bfc404834ae5ceff1bf778ececd3decfebeed Mon Sep 17 00:00:00 2001 From: birendra.kumar Date: Wed, 26 Feb 2020 16:08:43 +0530 Subject: [PATCH] uncomment insert/update license --- 400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts index abbea45..fee0ebc 100644 --- a/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts +++ b/400-SOURCECODE/Admin/src/app/components/LicenseEntity/addlicense.component.ts @@ -680,10 +680,10 @@ export class AddLicense implements OnInit { this.alerts += 'Account number already exists. Enter a different account number.'; } if (this.alerts == '') { - // return this.licenseService.InsertLicense(obj) - // .subscribe( - // n => (this.AfterInsertData(n, template)), - // error => this.error = error); + return this.licenseService.InsertLicense(obj) + .subscribe( + n => (this.AfterInsertData(n, template)), + error => this.error = error); } }, error => this.error = error); @@ -695,10 +695,10 @@ export class AddLicense implements OnInit { if (this.alerts == '') { console.log(this.insertUpdateLicenseFrm.controls['subscriptionStartDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['subscriptionEndDate'].value + ', ' + this.insertUpdateLicenseFrm.controls['renewDate'].value); console.log(obj.subscriptionStartDate + ', ' + obj.subscriptionEndDate + ', ' + obj.renewDate); - // return this.licenseService.UpdateLicense(obj) - // .subscribe( - // n => (this.AfterUpdateData(n, template)), - // error => this.error = error); + return this.licenseService.UpdateLicense(obj) + .subscribe( + n => (this.AfterUpdateData(n, template)), + error => this.error = error); } } } -- libgit2 0.21.4