Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/11 14:47:26 (14 years ago)
Author:
wtollsch
Message:

#1198 finished okb admin stucture integration

Location:
branches/WebApplication/MVC2/HLWebOKBAdminPlugin
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Controllers/AlgorithmClassController.cs

    r5186 r5258  
    88using System.ServiceModel.Security;
    99using HLWebPluginHost.OKBService;
     10using System.Diagnostics;
    1011
    1112namespace HLWebOKBAdminPlugin.Controllers
     
    3839            //what happens: generate list of AlgorithmClass and commit the list to the index view
    3940
    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");
    4251
    4352            //get list of Algorithm Classes
     
    6877            };
    6978
    70             return View(viewModel);
     79            ViewData["AlgorithmClass"] = viewModel;
     80
     81            return View();
    7182        }//Details
    7283
     
    8798            };
    8899
    89             return View(viewModel);
     100            ViewData["AlgorithmClass"] = viewModel;
     101
     102            return View();
    90103        }//Create
    91104
     
    120133                };
    121134
    122                 return View(viewModel);
     135                ViewData["AlgorithmClass"] = viewModel;
     136
     137                return View();
    123138            }
    124139        }//Create - post
     
    139154                AlgorithmClass = sc.GetAlgorithmClass(id)
    140155            };
    141             return View(viewModel);
     156
     157            ViewData["AlgorithmClass"] = viewModel;
     158
     159            return View();
    142160        }//Edit
    143161
     
    174192                };
    175193
    176                 return View(viewModel);
     194                ViewData["AlgorithmClass"] = viewModel;
     195
     196                return View();
    177197            }
    178198        }//Edit
     
    193213                AlgorithmClass = sc.GetAlgorithmClass(id)
    194214            };
    195             return View(viewModel);
     215
     216            ViewData["AlgorithmClass"] = viewModel;
     217
     218            return View();
    196219        }//Delete
    197220
     
    221244                };
    222245
    223                 return View(viewModel);
     246                ViewData["AlgorithmClass"] = viewModel;
     247
     248                return View();
    224249            }
    225250        }//Delete
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/HLWebOKBAdminPlugin.csproj

    r5072 r5258  
    9393      <DependentUpon>Global.asax</DependentUpon>
    9494    </Compile>
     95    <Compile Include="Helpers\HtmlHelpers.cs" />
    9596    <Compile Include="Models\AccountModels.cs" />
    9697    <Compile Include="Models\AlgorithmClassModel.cs" />
     
    101102      <DependentUpon>Reference.svcmap</DependentUpon>
    102103    </Compile>
     104    <Compile Include="ViewModels\AlgorithmClassViewModel.cs" />
    103105  </ItemGroup>
    104106  <ItemGroup>
     
    126128      <LastGenOutput>Reference.cs</LastGenOutput>
    127129    </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" />
    128134    <Content Include="Views\AlgorithmClass\Index.aspx" />
    129135    <Content Include="Views\ServiceTest\Index.aspx" />
Note: See TracChangeset for help on using the changeset viewer.