Changeset 4952 for branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers
- Timestamp:
- 11/27/10 08:20:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers/AlgorithmClassController.cs
r4939 r4952 16 16 public ActionResult Index() { 17 17 //create list of algorithms 18 OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient();19 sc.ClientCredentials.UserName.UserName = "Gerhard";20 sc.ClientCredentials.UserName.Password = "Gerhard";21 sc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;18 //OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient(); 19 //sc.ClientCredentials.UserName.UserName = "Gerhard"; 20 //sc.ClientCredentials.UserName.Password = "Gerhard"; 21 //sc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None; 22 22 23 var agcList = new List<OKBService.AlgorithmClass>(); 24 OKBService.AlgorithmClass[] ac = sc.GetAlgorithmClasses(); 25 foreach (OKBService.AlgorithmClass a in ac) { 26 agcList.Add(a); 27 }//foreach 23 //var agcList = new List<OKBService.AlgorithmClass>(); 24 //OKBService.AlgorithmClass[] ac = sc.GetAlgorithmClasses(); 25 //foreach (OKBService.AlgorithmClass a in ac) { 26 // agcList.Add(a); 27 //}//foreach 28 29 //var viewModel = new AlgorithmClassModel { 30 // NumOfClasses = agcList.Count(), 31 // AlgorithmClassList = agcList 32 //}; 28 33 29 34 var viewModel = new AlgorithmClassModel { 30 NumOfClasses = agcList.Count(),31 AlgorithmClassList = agcList35 NumOfClasses = 0, 36 AlgorithmClassList = null 32 37 }; 33 38 … … 51 56 }//index 52 57 58 // 59 // GET: /AlgotithmClass/5 60 public string DelAlgorithmClass(int id){ 61 string message = "DeleteAlgorithmClass, id = " + Server.HtmlEncode(Request.QueryString["id"]); 62 return Server.HtmlEncode(message); 63 } 64 53 65 } 54 66 }
Note: See TracChangeset
for help on using the changeset viewer.