Commit f32193b0f978b209cb4c52bde95376db6f4f2297
1 parent
1cd957b8
Committed updated code
Showing
5 changed files
with
141 additions
and
0 deletions
400-SOURCECODE/AIAHTML5.Admin/app/model/db-tables.js
0 → 100644
1 | +"use strict"; | |
2 | +var State = (function () { | |
3 | + function State(Id, StateName) { | |
4 | + this.Id = Id; | |
5 | + this.StateName = StateName; | |
6 | + } | |
7 | + return State; | |
8 | +}()); | |
9 | +exports.State = State; | |
10 | +var Country = (function () { | |
11 | + function Country(Id, Name) { | |
12 | + this.Id = Id; | |
13 | + this.Name = Name; | |
14 | + } | |
15 | + return Country; | |
16 | +}()); | |
17 | +exports.Country = Country; | |
18 | +var AccountType = (function () { | |
19 | + function AccountType(Id, Title) { | |
20 | + this.Id = Id; | |
21 | + this.Title = Title; | |
22 | + } | |
23 | + AccountType.createEmptyAccountType = function () { | |
24 | + return new AccountType(0, ""); | |
25 | + }; | |
26 | + return AccountType; | |
27 | +}()); | |
28 | +exports.AccountType = AccountType; | |
29 | +var SecurityQuestions = (function () { | |
30 | + function SecurityQuestions(Id, Title) { | |
31 | + this.Id = Id; | |
32 | + this.Title = Title; | |
33 | + } | |
34 | + return SecurityQuestions; | |
35 | +}()); | |
36 | +exports.SecurityQuestions = SecurityQuestions; | |
37 | +var LicenseType = (function () { | |
38 | + function LicenseType(Id, Title) { | |
39 | + this.Id = Id; | |
40 | + this.Title = Title; | |
41 | + } | |
42 | + return LicenseType; | |
43 | +}()); | |
44 | +exports.LicenseType = LicenseType; | |
45 | +//# sourceMappingURL=db-tables.js.map | |
0 | 46 | \ No newline at end of file | ... | ... |
400-SOURCECODE/AIAHTML5.Admin/app/model/db-tables.js.map
0 → 100644
1 | +{"version":3,"file":"db-tables.js","sourceRoot":"","sources":["db-tables.ts"],"names":[],"mappings":";AAAA;IACI,eACW,EAAU,EACV,SAAiB;QADjB,OAAE,GAAF,EAAE,CAAQ;QACV,cAAS,GAAT,SAAS,CAAQ;IACxB,CAAC;IACT,YAAC;AAAD,CAAC,AALD,IAKC;AALY,aAAK,QAKjB,CAAA;AAED;IACI,iBACW,EAAU,EACV,IAAY;QADZ,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;IACnB,CAAC;IACT,cAAC;AAAD,CAAC,AALD,IAKC;AALY,eAAO,UAKnB,CAAA;AAED;IACI,qBACW,EAAU,EACV,KAAa;QADb,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IAES,kCAAsB,GAApC;QACI,MAAM,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IACL,kBAAC;AAAD,CAAC,AATD,IASC;AATY,mBAAW,cASvB,CAAA;AAED;IACI,2BACW,EAAU,EACV,KAAa;QADb,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IACT,wBAAC;AAAD,CAAC,AALD,IAKC;AALY,yBAAiB,oBAK7B,CAAA;AAED;IACI,qBACW,EAAU,EACV,KAAa;QADb,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IACT,kBAAC;AAAD,CAAC,AALD,IAKC;AALY,mBAAW,cAKvB,CAAA"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/AIAHTML5.Admin/app/model/db-tables.ts
0 → 100644
1 | +export class State { | |
2 | + constructor( | |
3 | + public Id: number, | |
4 | + public StateName: string | |
5 | + ) { } | |
6 | +} | |
7 | + | |
8 | +export class Country { | |
9 | + constructor( | |
10 | + public Id: number, | |
11 | + public Name: string | |
12 | + ) { } | |
13 | +} | |
14 | + | |
15 | +export class AccountType { | |
16 | + constructor( | |
17 | + public Id: number, | |
18 | + public Title: string | |
19 | + ) { } | |
20 | + | |
21 | + public static createEmptyAccountType(): AccountType { | |
22 | + return new AccountType(0, ""); | |
23 | + } | |
24 | +} | |
25 | + | |
26 | +export class SecurityQuestions { | |
27 | + constructor( | |
28 | + public Id: number, | |
29 | + public Title: string | |
30 | + ) { } | |
31 | +} | |
32 | + | |
33 | +export class LicenseType { | |
34 | + constructor( | |
35 | + public Id: number, | |
36 | + public Title: string | |
37 | + ) { } | |
38 | +} | |
0 | 39 | \ No newline at end of file | ... | ... |
400-SOURCECODE/AIAHTML5.Server/Controllers/LicenseTypeController.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 System.Collections; | |
8 | +using Newtonsoft.Json; | |
9 | +using Newtonsoft.Json.Linq; | |
10 | +using AIAHTML5.Server.Models; | |
11 | + | |
12 | +namespace AIAHTML5.Server.Controllers | |
13 | +{ | |
14 | + public class LicenseTypeController : ApiController | |
15 | + { | |
16 | + DbModel objDbModel = new DbModel(); | |
17 | + | |
18 | + // GET: api/AccountType | |
19 | + public HttpResponseMessage Get() | |
20 | + { | |
21 | + ArrayList accountsList = objDbModel.GetAllLicenseType(); | |
22 | + | |
23 | + var securityQuesJson = JsonConvert.SerializeObject(accountsList, Formatting.Indented); | |
24 | + | |
25 | + return Request.CreateResponse(HttpStatusCode.OK, securityQuesJson); | |
26 | + } | |
27 | + } | |
28 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.Server/Controllers/SecurityQuestionListController.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 System.Collections; | |
8 | +using Newtonsoft.Json; | |
9 | +using Newtonsoft.Json.Linq; | |
10 | +using AIAHTML5.Server.Models; | |
11 | + | |
12 | + | |
13 | +namespace AIAHTML5.Server.Controllers | |
14 | +{ | |
15 | + public class SecurityQuestionListController : ApiController | |
16 | + { | |
17 | + DbModel objDbModel = new DbModel(); | |
18 | + | |
19 | + // GET: api/AccountType | |
20 | + public HttpResponseMessage Get() | |
21 | + { | |
22 | + ArrayList accountsList = objDbModel.GetSecuirtyQuestionsList(); | |
23 | + | |
24 | + var securityQuesJson = JsonConvert.SerializeObject(accountsList, Formatting.Indented); | |
25 | + | |
26 | + return Request.CreateResponse(HttpStatusCode.OK, securityQuesJson); | |
27 | + } | |
28 | + } | |
29 | +} | ... | ... |