public ActionResult Add() { ExperimentViewModel viewModel = new ExperimentViewModel(); viewModel.Experiment = null; viewModel.Cohorts = cohortRepository.GetAll().ToList(); viewModel.Goals = goalRepository.GetAll().ToList(); return(View(viewModel)); }
public IEnumerable <GoalViewModel> GetAll() { return(_goalRepository.GetAll().ProjectTo <GoalViewModel>(_mapper.ConfigurationProvider)); }
public ActionResult Index() { var goals = goalRepository.GetAll(); return(View(goals)); }
public List <Goal> GetAll() { var goals = _goalRepository.GetAll(); return(goals); }
public IEnumerable <Goal> Get() { var model = goalRepository.GetAll().ToArray(); return(model); }
public ActionResult <IEnumerable <Goal> > Get() { return(Ok(_goalRepository.GetAll())); }
public bool Exists(long id) { return(Repo.GetAll().Count(e => e.Id == id) > 0); }