Exemple #1
0
 public static StepsViewModel CreateIndex(IStepsRepository repository, long projectID)
 {
     var viewModel = new StepsViewModel();
     viewModel.Steps = repository.GetAll().ToList();
     viewModel.nextStepToComplete = repository.GetNextStepToComplete(projectID);
     return viewModel;
 }
Exemple #2
0
 public static StepsViewModel getStep(IStepsRepository repository, int mystep, long projID)
 {
     var viewModel = new StepsViewModel();
     viewModel.Steps = repository.GetAll().ToList();
     viewModel.nextStepToComplete = repository.GetNextStepToComplete(projID);
     viewModel.thisStep = repository.GetByStepID(mystep);
     viewModel.projectID = projID;
     return viewModel;
 }
Exemple #3
0
 public static StepsViewModel BottomTwoTopThirds(IStepsRepository repository, long projectID)
 {
     var viewModel = new StepsViewModel();
     viewModel.ScenarioList = repository.GetBottomTwoTopThirds(projectID).OrderBy(x => x.Priority).ToList();
     return viewModel;
 }