Commit 4a634f657caea7fef57dc44b8c19aa7e586a0d68

Authored by Utkarsh Singh
1 parent 04be3b06

Committing updated code

400-SOURCECODE/AIAHTML5.Admin/app/components/add-new-license.component.html
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 <option value="4">Reseller</option> 35 <option value="4">Reseller</option>
36 </select>--> 36 </select>-->
37 <select id="LicenseType" formControlName="licenseType" class="form-control" required> 37 <select id="LicenseType" formControlName="licenseType" class="form-control" required>
38 - <option *ngFor="let lic of licenseTypes" [value]="lic.id">{{lic.title}}</option> 38 + <option *ngFor="let lic of licenseTypes" [value]="lic.id">{{lic.title}}</option>
39 </select> 39 </select>
40 <div *ngIf="formErrors.licenseType" class="alert alert-danger"> 40 <div *ngIf="formErrors.licenseType" class="alert alert-danger">
41 {{ formErrors.licenseType }} 41 {{ formErrors.licenseType }}
@@ -97,7 +97,7 @@ @@ -97,7 +97,7 @@
97 <div class="form-group marginTop26"> 97 <div class="form-group marginTop26">
98 <label for="AccountNo" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Account No <span class="red">*</span> : </label> 98 <label for="AccountNo" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Account No <span class="red">*</span> : </label>
99 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 99 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
100 - <input type="text" class="form-control input-sm" id="AccountNo" placeholder="" formControlName="accountNo" required> 100 + <input type="text" class="form-control input-sm" id="AccountNo" placeholder="" [(ngModel)]="accountNo" formControlName="accountNo" required>
101 </div> 101 </div>
102 <div *ngIf="formErrors.accountNo" class="alert alert-danger"> 102 <div *ngIf="formErrors.accountNo" class="alert alert-danger">
103 {{ formErrors.accountNo }} 103 {{ formErrors.accountNo }}
@@ -108,7 +108,7 @@ @@ -108,7 +108,7 @@
108 <div class="form-group marginTop10"> 108 <div class="form-group marginTop10">
109 <label for="ProductKey" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Product Key : </label> 109 <label for="ProductKey" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Product Key : </label>
110 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 110 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
111 - <input type="text" class="form-control input-sm" id="ProductKey" placeholder=""> 111 + <input type="text" class="form-control input-sm" id="ProductKey" [(ngModel)]="ProductKey" placeholder="">
112 </div> 112 </div>
113 </div> 113 </div>
114 </div> 114 </div>
@@ -116,7 +116,7 @@ @@ -116,7 +116,7 @@
116 <div class="form-group marginTop10"> 116 <div class="form-group marginTop10">
117 <label for="LicenseeFirstName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Licensee First Name <span class="red">*</span> : </label> 117 <label for="LicenseeFirstName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Licensee First Name <span class="red">*</span> : </label>
118 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 118 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
119 - <input type="text" class="form-control input-sm" id="LicenseeFirstName" placeholder="" formControlName="licenseeFirstName" required> 119 + <input type="text" class="form-control input-sm" id="LicenseeFirstName" placeholder="" [(ngModel)]="licenseeFirstName" formControlName="licenseeFirstName" required>
120 </div> 120 </div>
121 <div *ngIf="formErrors.licenseeFirstName" class="alert alert-danger"> 121 <div *ngIf="formErrors.licenseeFirstName" class="alert alert-danger">
122 {{ formErrors.licenseeFirstName }} 122 {{ formErrors.licenseeFirstName }}
@@ -127,7 +127,7 @@ @@ -127,7 +127,7 @@
127 <div class="form-group marginTop10"> 127 <div class="form-group marginTop10">
128 <label for="LicenseelastName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Licensee Last Name <span class="red">*</span> : </label> 128 <label for="LicenseelastName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Licensee Last Name <span class="red">*</span> : </label>
129 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 129 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
130 - <input type="text" class="form-control input-sm" id="LicenseelastName" formControlName="licenseeLastName" placeholder="" required> 130 + <input type="text" class="form-control input-sm" id="LicenseelastName" [(ngModel)]="licenseeLastName" formControlName="licenseeLastName" placeholder="" required>
131 </div> 131 </div>
132 <div *ngIf="formErrors.licenseeLastName" class="alert alert-danger"> 132 <div *ngIf="formErrors.licenseeLastName" class="alert alert-danger">
133 {{ formErrors.licenseeLastName }} 133 {{ formErrors.licenseeLastName }}
@@ -151,7 +151,7 @@ @@ -151,7 +151,7 @@
151 151
152 </select>--> 152 </select>-->
153 <select id="AccountType" formControlName="accountType" class="form-control" required> 153 <select id="AccountType" formControlName="accountType" class="form-control" required>
154 - <option *ngFor="let acc of accountTypes">{{acc.title}}</option> <!--[value]="acc"--> 154 + <option *ngFor="let acc of accountTypes" [(ngModel)]="accountType">{{acc.title}}</option> <!--[value]="acc"-->
155 </select> 155 </select>
156 <div *ngIf="formErrors.accountType" class="alert alert-danger"> 156 <div *ngIf="formErrors.accountType" class="alert alert-danger">
157 {{ formErrors.accountType }} 157 {{ formErrors.accountType }}
@@ -163,7 +163,7 @@ @@ -163,7 +163,7 @@
163 <div class="form-group marginTop10"> 163 <div class="form-group marginTop10">
164 <label for="InstitutionName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Institution Name <span class="red">*</span> : </label> 164 <label for="InstitutionName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Institution Name <span class="red">*</span> : </label>
165 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 165 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
166 - <input type="text" class="form-control input-sm" id="InstitutionName" formControlName="institutionName" placeholder="" required> 166 + <input type="text" class="form-control input-sm" id="InstitutionName" [(ngModel)]="institutionName" formControlName="institutionName" placeholder="" required>
167 </div> 167 </div>
168 <div *ngIf="formErrors.institutionName" class="alert alert-danger"> 168 <div *ngIf="formErrors.institutionName" class="alert alert-danger">
169 {{ formErrors.institutionName }} 169 {{ formErrors.institutionName }}
@@ -174,7 +174,7 @@ @@ -174,7 +174,7 @@
174 <div class="form-group marginTop10"> 174 <div class="form-group marginTop10">
175 <label for="Address" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Address <span class="red">*</span> : </label> 175 <label for="Address" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Address <span class="red">*</span> : </label>
176 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 176 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
177 - <input type="text" class="form-control input-sm" id="Address" formControlName="address" placeholder="" required> 177 + <input type="text" class="form-control input-sm" id="Address" [(ngModel)]="address" formControlName="address" placeholder="" required>
178 </div> 178 </div>
179 <div *ngIf="formErrors.address" class="alert alert-danger"> 179 <div *ngIf="formErrors.address" class="alert alert-danger">
180 {{ formErrors.address }} 180 {{ formErrors.address }}
@@ -185,7 +185,7 @@ @@ -185,7 +185,7 @@
185 <div class="form-group marginTop10"> 185 <div class="form-group marginTop10">
186 <label for="City" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">City <span class="red">*</span> : </label> 186 <label for="City" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">City <span class="red">*</span> : </label>
187 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 187 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
188 - <input type="text" class="form-control input-sm" id="City" formControlName="city" placeholder="" required> 188 + <input type="text" class="form-control input-sm" id="City" [(ngModel)]="city" formControlName="city" placeholder="" required>
189 </div> 189 </div>
190 <div *ngIf="formErrors.city" class="alert alert-danger"> 190 <div *ngIf="formErrors.city" class="alert alert-danger">
191 {{ formErrors.city }} 191 {{ formErrors.city }}
@@ -196,7 +196,7 @@ @@ -196,7 +196,7 @@
196 <div class="form-group marginTop10"> 196 <div class="form-group marginTop10">
197 <label for="State" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">State (only U.S.) <span class="red">*</span> :</label> 197 <label for="State" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">State (only U.S.) <span class="red">*</span> :</label>
198 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 198 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
199 - <select class="form-control input-sm " id="State" formControlName="state" required> 199 + <select class="form-control input-sm " id="State" [(ngModel)]="state" formControlName="state" required>
200 <option *ngFor="let state of allStates" [value]="state.id">{{state.title}}</option> 200 <option *ngFor="let state of allStates" [value]="state.id">{{state.title}}</option>
201 <!--<option selected="">All</option> 201 <!--<option selected="">All</option>
202 <option>Alabama</option> 202 <option>Alabama</option>
@@ -261,8 +261,8 @@ @@ -261,8 +261,8 @@
261 <div class="form-group marginTop10"> 261 <div class="form-group marginTop10">
262 <label for="Country" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Country <span class="red">*</span> :</label> 262 <label for="Country" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Country <span class="red">*</span> :</label>
263 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 263 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
264 - <select class="form-control input-sm" id="Country">  
265 - <option *ngFor="let country of allCountries" [value]="country.id">{{country.title}}</option> 264 + <select class="form-control input-sm" id="Country" formControlName="country">
  265 + <option *ngFor="let country of allCountries" [(ngModel)]="country" [value]="country.id">{{country.title}}</option>
266 <!--<option selected="">All</option> 266 <!--<option selected="">All</option>
267 <option value="United States">United States</option> 267 <option value="United States">United States</option>
268 <option value="Afghanistan">Afghanistan</option> 268 <option value="Afghanistan">Afghanistan</option>
@@ -514,7 +514,7 @@ @@ -514,7 +514,7 @@
514 <div class="form-group marginTop10"> 514 <div class="form-group marginTop10">
515 <label for="Zip" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Zip <span class="red">*</span> : </label> 515 <label for="Zip" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Zip <span class="red">*</span> : </label>
516 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 516 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
517 - <input type="text" class="form-control input-sm" id="Zip" formControlName="zip" onlyNumber="true" placeholder="" required> 517 + <input type="text" class="form-control input-sm" id="Zip" formControlName="zip" [(ngModel)]="zip" onlyNumber="true" placeholder="" required>
518 </div> 518 </div>
519 <div *ngIf="formErrors.zip" class="alert alert-danger"> 519 <div *ngIf="formErrors.zip" class="alert alert-danger">
520 {{ formErrors.zip }} 520 {{ formErrors.zip }}
@@ -525,7 +525,7 @@ @@ -525,7 +525,7 @@
525 <div class="form-group marginTop10"> 525 <div class="form-group marginTop10">
526 <label for="Phone" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Phone <span class="red">*</span> : </label> 526 <label for="Phone" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Phone <span class="red">*</span> : </label>
527 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 527 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
528 - <input type="text" class="form-control input-sm" id="Phone" formControlName="phone" placeholder="" onlyNumber="true" required> 528 + <input type="text" class="form-control input-sm" id="Phone" [(ngModel)]="phone" formControlName="phone" placeholder="" onlyNumber="true" required>
529 </div> 529 </div>
530 <div *ngIf="formErrors.phone" class="alert alert-danger"> 530 <div *ngIf="formErrors.phone" class="alert alert-danger">
531 {{ formErrors.phone }} 531 {{ formErrors.phone }}
@@ -536,7 +536,7 @@ @@ -536,7 +536,7 @@
536 <div class="form-group marginTop10"> 536 <div class="form-group marginTop10">
537 <label for="Email" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Email ID <span class="red">*</span> : </label> 537 <label for="Email" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Email ID <span class="red">*</span> : </label>
538 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 538 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
539 - <input type="email" class="form-control input-sm" id="Email" formControlName="email" placeholder="" required> 539 + <input type="email" class="form-control input-sm" id="Email" [(ngModel)]="email" formControlName="email" placeholder="" required>
540 </div> 540 </div>
541 <div *ngIf="formErrors.email" class="alert alert-danger"> 541 <div *ngIf="formErrors.email" class="alert alert-danger">
542 {{ formErrors.email }} 542 {{ formErrors.email }}
@@ -558,7 +558,7 @@ @@ -558,7 +558,7 @@
558 <label for="SubscriptionStartDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription Start Date <span class="red">*</span> :</label> 558 <label for="SubscriptionStartDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription Start Date <span class="red">*</span> :</label>
559 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 559 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
560 <div id="datetimepicker1" class="input-group input-group-sm input-append date"> 560 <div id="datetimepicker1" class="input-group input-group-sm input-append date">
561 - <input type="text" class="form-control" id="SubscriptionStartDate" formControlName="subscriptionStartDate" required> 561 + <input type="text" class="form-control" id="SubscriptionStartDate" [(ngModel)]="subscriptionStartDate" formControlName="subscriptionStartDate" required>
562 <span class="input-group-btn add-on"> 562 <span class="input-group-btn add-on">
563 <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> 563 <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
564 </span> 564 </span>
@@ -575,7 +575,7 @@ @@ -575,7 +575,7 @@
575 <label for="SubscriptionEndDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription End Date <span class="red">*</span> :</label> 575 <label for="SubscriptionEndDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription End Date <span class="red">*</span> :</label>
576 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 576 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
577 <div id="datetimepicker2" class="input-group input-group-sm input-append date"> 577 <div id="datetimepicker2" class="input-group input-group-sm input-append date">
578 - <input type="text" class="form-control" id="SubscriptionEndDate" formControlName="subscriptionEndDate" required> 578 + <input type="text" class="form-control" id="SubscriptionEndDate" [(ngModel)]="subscriptionEndDate" formControlName="subscriptionEndDate" required>
579 <span class="input-group-btn add-on"> 579 <span class="input-group-btn add-on">
580 <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> 580 <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
581 </span> 581 </span>
@@ -592,7 +592,7 @@ @@ -592,7 +592,7 @@
592 <div class="form-group marginTop10"> 592 <div class="form-group marginTop10">
593 <label for="SubscriptionPrice" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Subscription Price <span class="red">*</span> : </label> 593 <label for="SubscriptionPrice" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Subscription Price <span class="red">*</span> : </label>
594 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 594 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
595 - <input type="text" class="form-control input-sm" id="SubscriptionPrice" formControlName="subscriptionPrice" onlyNumber="true" placeholder="" required> 595 + <input type="text" class="form-control input-sm" id="SubscriptionPrice" [(ngModel)]="subscriptionPrice" formControlName="subscriptionPrice" onlyNumber="true" placeholder="" required>
596 </div> 596 </div>
597 <div *ngIf="formErrors.subscriptionPrice" class="alert alert-danger"> 597 <div *ngIf="formErrors.subscriptionPrice" class="alert alert-danger">
598 {{ formErrors.subscriptionPrice }} 598 {{ formErrors.subscriptionPrice }}
@@ -603,7 +603,7 @@ @@ -603,7 +603,7 @@
603 <div class="form-group marginTop10"> 603 <div class="form-group marginTop10">
604 <label for="ExportImages" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">No. of Export Images <span class="red">*</span> : </label> 604 <label for="ExportImages" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">No. of Export Images <span class="red">*</span> : </label>
605 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 605 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
606 - <input type="text" class="form-control input-sm" id="ExportImages" formControlName="exportImages" onlyNumber="true" placeholder="" required> 606 + <input type="text" class="form-control input-sm" id="ExportImages" [(ngModel)]="exportImages" formControlName="exportImages" onlyNumber="true" placeholder="" required>
607 </div> 607 </div>
608 <div *ngIf="formErrors.exportImages" class="alert alert-danger"> 608 <div *ngIf="formErrors.exportImages" class="alert alert-danger">
609 {{ formErrors.exportImages }} 609 {{ formErrors.exportImages }}
@@ -638,7 +638,7 @@ @@ -638,7 +638,7 @@
638 <div class="form-group marginTop10"> 638 <div class="form-group marginTop10">
639 <label for="UserName1" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">User Name <span class="red">*</span> : </label> 639 <label for="UserName1" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">User Name <span class="red">*</span> : </label>
640 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 640 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
641 - <input type="text" class="form-control input-sm" id="UserName1" formControlName="userName1" placeholder="" required> 641 + <input type="text" class="form-control input-sm" id="UserName1" [(ngModel)]="userName1" formControlName="userName1" placeholder="" required>
642 </div> 642 </div>
643 <div *ngIf="formErrors.userName1" class="alert alert-danger"> 643 <div *ngIf="formErrors.userName1" class="alert alert-danger">
644 {{ formErrors.userName1 }} 644 {{ formErrors.userName1 }}
@@ -649,7 +649,7 @@ @@ -649,7 +649,7 @@
649 <div class="form-group marginTop10"> 649 <div class="form-group marginTop10">
650 <label for="Password" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Password <span class="red">*</span> : </label> 650 <label for="Password" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Password <span class="red">*</span> : </label>
651 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 651 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
652 - <input type="password" class="form-control input-sm" id="Password" formControlName="password" placeholder="" required> 652 + <input type="password" class="form-control input-sm" id="Password" [(ngModel)]="password" formControlName="password" placeholder="" required>
653 </div> 653 </div>
654 <div *ngIf="formErrors.password" class="alert alert-danger"> 654 <div *ngIf="formErrors.password" class="alert alert-danger">
655 {{ formErrors.password }} 655 {{ formErrors.password }}
@@ -667,7 +667,7 @@ @@ -667,7 +667,7 @@
667 <option value="4">What was the last name of your .... </option> 667 <option value="4">What was the last name of your .... </option>
668 <option value="5">What is the name of your ....</option> 668 <option value="5">What is the name of your ....</option>
669 </select>--> 669 </select>-->
670 - <select id="SecurityQuestion" formControlName="securityQuestion" class="form-control" required> 670 + <select id="SecurityQuestion" formControlName="securityQuestion" [(ngModel)]="securityQuestion" class="form-control" required>
671 <option *ngFor="let q of allQuestions" [value]="q.id">{{q.title}}</option> 671 <option *ngFor="let q of allQuestions" [value]="q.id">{{q.title}}</option>
672 </select> 672 </select>
673 </div> 673 </div>
@@ -680,7 +680,7 @@ @@ -680,7 +680,7 @@
680 <div class="form-group marginTop10"> 680 <div class="form-group marginTop10">
681 <label for="Answer" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Answer <span class="red">*</span> : </label> 681 <label for="Answer" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Answer <span class="red">*</span> : </label>
682 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> 682 <div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
683 - <input type="text" class="form-control input-sm" id="Answer" formControlName="answer" placeholder="" required> 683 + <input type="text" class="form-control input-sm" id="Answer" [(ngModel)]="answer" formControlName="answer" placeholder="" required>
684 </div> 684 </div>
685 <div *ngIf="formErrors.answer" class="alert alert-danger"> 685 <div *ngIf="formErrors.answer" class="alert alert-danger">
686 {{ formErrors.answer }} 686 {{ formErrors.answer }}
400-SOURCECODE/AIAHTML5.Server/AIAHTML5.Server.csproj
@@ -146,6 +146,7 @@ @@ -146,6 +146,7 @@
146 <Compile Include="App_Start\WebApiConfig.cs" /> 146 <Compile Include="App_Start\WebApiConfig.cs" />
147 <Compile Include="Constants\AdminConstant.cs" /> 147 <Compile Include="Constants\AdminConstant.cs" />
148 <Compile Include="Controllers\AccountTypeController.cs" /> 148 <Compile Include="Controllers\AccountTypeController.cs" />
  149 + <Compile Include="Controllers\AddLicenseController.cs" />
149 <Compile Include="Controllers\AppSettingsController.cs" /> 150 <Compile Include="Controllers\AppSettingsController.cs" />
150 <Compile Include="Controllers\AuthenticateController.cs" /> 151 <Compile Include="Controllers\AuthenticateController.cs" />
151 <Compile Include="Controllers\ChangeUserPasswordController.cs" /> 152 <Compile Include="Controllers\ChangeUserPasswordController.cs" />
400-SOURCECODE/AIAHTML5.Server/Controllers/AddLicenseController.cs 0 → 100644
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Net;
  5 +using System.Net.Http;
  6 +using System.Web.Http;
  7 +using Newtonsoft.Json;
  8 +using Newtonsoft.Json.Linq;
  9 +using AIAHTML5.Server.Models;
  10 +using System.Web.Http.Cors;
  11 +using System.Web.Cors;
  12 +using AIAHTML5.Server.Constants;
  13 +using log4net;
  14 +
  15 +namespace AIAHTML5.Server.Controllers
  16 +{
  17 + [EnableCors(origins: "http://localhost:85", headers: "*", methods: "*")]
  18 + public class AddLicenseController : ApiController
  19 + {
  20 + // GET: api/AddLicense
  21 + public IEnumerable<string> Get()
  22 + {
  23 + return new string[] { "value1", "value2" };
  24 + }
  25 +
  26 + // GET: api/AddLicense/5
  27 + public string Get(int id)
  28 + {
  29 + return "value";
  30 + }
  31 +
  32 + // POST: api/AddLicense
  33 + public void Post([FromBody]string value)
  34 + {
  35 + }
  36 +
  37 + // PUT: api/AddLicense/5
  38 + public void Put(int id, [FromBody]string value)
  39 + {
  40 + }
  41 +
  42 + // DELETE: api/AddLicense/5
  43 + public void Delete(int id)
  44 + {
  45 + }
  46 + }
  47 +}