Exemple #1
0
        public ActionResult Update(int Id)
        {
            ExperimentViewModel viewModel = new ExperimentViewModel();

            viewModel.Experiment = experimentRepository.Get(Id);
            viewModel.Cohorts    = cohortRepository.GetAll().ToList();
            viewModel.Goals      = goalRepository.GetAll().ToList();
            return(View(viewModel));
        }
 public Experiment Get(int id)
 {
     return(_experimentRepository.Get(id));
 }