Beispiel #1
0
 public static ScenarioViewModel CreateTopThird(IScenarioRepository repository, long projectID)
 {
     var viewModel = new ScenarioViewModel();
     viewModel.UtilitiesList = repository.UtilityList(projectID).OrderBy(x => x.Scenario.Priority).ToList();
     viewModel.ScenariosList = repository.GetTopThird(projectID).OrderBy(x => x.Priority).ToList();
     viewModel.TopScenarios = repository.GetTopThird(projectID).OrderBy(x => x.Priority);
     return viewModel;
 }