Beispiel #1
0
 public static ScenarioViewModel CreateIndex(IScenarioRepository repository, long projectID)
 {
     var viewModel = new ScenarioViewModel();
         viewModel.projectID = projectID;
         viewModel.Scenarios = repository.GetByProjectID(projectID).OrderBy(x => x.Priority);
         viewModel.Steps = repository.Steps().ToList();
         viewModel.ProjectName = repository.GetProjectByID(projectID).Name;
         viewModel.nextStepToComplete = repository.NextStepToComplete();
     return viewModel;
 }