Changeset 5258
- Timestamp:
- 01/08/11 14:47:26 (14 years ago)
- Location:
- branches/WebApplication/MVC2
- Files:
-
- 4 added
- 4 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Controllers/AlgorithmClassController.cs
r5186 r5258 8 8 using System.ServiceModel.Security; 9 9 using HLWebPluginHost.OKBService; 10 using System.Diagnostics; 10 11 11 12 namespace HLWebOKBAdminPlugin.Controllers … … 38 39 //what happens: generate list of AlgorithmClass and commit the list to the index view 39 40 40 //get certificated service client 41 OKBService.OKBServiceClient sc = CertificateValidator(); 41 42 43 //get certificated service client 44 OKBService.OKBServiceClient sc = CertificateValidator(); 45 46 var tstModel = new AlgorithmClassViewModel { 47 AlgorithmClass = new AlgorithmClass() 48 }; 49 50 Debug.WriteLine("tstModel created"); 42 51 43 52 //get list of Algorithm Classes … … 68 77 }; 69 78 70 return View(viewModel); 79 ViewData["AlgorithmClass"] = viewModel; 80 81 return View(); 71 82 }//Details 72 83 … … 87 98 }; 88 99 89 return View(viewModel); 100 ViewData["AlgorithmClass"] = viewModel; 101 102 return View(); 90 103 }//Create 91 104 … … 120 133 }; 121 134 122 return View(viewModel); 135 ViewData["AlgorithmClass"] = viewModel; 136 137 return View(); 123 138 } 124 139 }//Create - post … … 139 154 AlgorithmClass = sc.GetAlgorithmClass(id) 140 155 }; 141 return View(viewModel); 156 157 ViewData["AlgorithmClass"] = viewModel; 158 159 return View(); 142 160 }//Edit 143 161 … … 174 192 }; 175 193 176 return View(viewModel); 194 ViewData["AlgorithmClass"] = viewModel; 195 196 return View(); 177 197 } 178 198 }//Edit … … 193 213 AlgorithmClass = sc.GetAlgorithmClass(id) 194 214 }; 195 return View(viewModel); 215 216 ViewData["AlgorithmClass"] = viewModel; 217 218 return View(); 196 219 }//Delete 197 220 … … 221 244 }; 222 245 223 return View(viewModel); 246 ViewData["AlgorithmClass"] = viewModel; 247 248 return View(); 224 249 } 225 250 }//Delete -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/HLWebOKBAdminPlugin.csproj
r5072 r5258 93 93 <DependentUpon>Global.asax</DependentUpon> 94 94 </Compile> 95 <Compile Include="Helpers\HtmlHelpers.cs" /> 95 96 <Compile Include="Models\AccountModels.cs" /> 96 97 <Compile Include="Models\AlgorithmClassModel.cs" /> … … 101 102 <DependentUpon>Reference.svcmap</DependentUpon> 102 103 </Compile> 104 <Compile Include="ViewModels\AlgorithmClassViewModel.cs" /> 103 105 </ItemGroup> 104 106 <ItemGroup> … … 126 128 <LastGenOutput>Reference.cs</LastGenOutput> 127 129 </None> 130 <Content Include="Views\AlgorithmClass\Create.aspx" /> 131 <Content Include="Views\AlgorithmClass\Delete.aspx" /> 132 <Content Include="Views\AlgorithmClass\Details.aspx" /> 133 <Content Include="Views\AlgorithmClass\Edit.aspx" /> 128 134 <Content Include="Views\AlgorithmClass\Index.aspx" /> 129 135 <Content Include="Views\ServiceTest\Index.aspx" />
Note: See TracChangeset
for help on using the changeset viewer.