Changeset 6142 for branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models
- Timestamp:
- 05/07/11 13:39:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/ProblemModel.cs
r6130 r6142 21 21 Problem[] problems = adminClient.GetProblems(); 22 22 return problems.ToList<Problem>(); 23 } 24 } 23 25 26 public List<ProblemClass> ProblemClasses { 27 get { 28 AdministrationServiceClient adminClient = Admin.GetClientFactory("okbtester", "okbtester"); 29 IList<ProblemClass> problemClassList = new List<ProblemClass>(); 30 ProblemClass[] problemClass = adminClient.GetProblemClasses(); 31 return problemClass.ToList<ProblemClass>(); 32 } 33 } 34 35 public List<Platform> Plattforms { 36 get { 37 AdministrationServiceClient adminClient = Admin.GetClientFactory("okbtester", "okbtester"); 38 IList<Platform> plattformList = new List<Platform>(); 39 Platform[] plattforms = adminClient.GetPlatforms(); 40 return plattforms.ToList<Platform>(); 24 41 } 25 42 } … … 30 47 public Problem Problem { get; set; } 31 48 49 public void SaveProblem(Problem problem) { 50 AdministrationServiceClient adminClient = Admin.GetClientFactory("okbtester", "okbtester"); 51 adminClient.UpdateProblem(problem); 52 } 53 54 public void CreateProblem(Problem problem) { 55 AdministrationServiceClient adminClient = Admin.GetClientFactory("okbtester", "okbtester"); 56 adminClient.AddProblem(problem); 57 } 58 32 59 } 33 60 }
Note: See TracChangeset
for help on using the changeset viewer.