public ResearchesController(ResearchesContext researchesContext,
                             ApplicationDbContext usersContext,
                             DatasetsContext datasetsContext,
                             QuestionnairesContext questionnairesContext)
 {
     _researchesContext     = researchesContext;
     _usersContext          = usersContext;
     _datasetsContext       = datasetsContext;
     _questionnairesContext = questionnairesContext;
 }
        public DeelnemersController(ResearchesContext researchesContext, QuestionnairesContext questionnairesContext, DatasetsContext datasetsContext)
        {
            _researchesContext     = researchesContext;
            _questionnairesContext = questionnairesContext;
            _datasetsContext       = datasetsContext;

            //If no datasets were found, seed one
            if (_datasetsContext.Datasets.Any() == false)
            {
                Dataset dummyDataset = new Dataset
                {
                    //QuestionnaireID = _questionnairesContext.Questionnaires
                };

                _datasetsContext.Add(dummyDataset);
            }
        }
 public QuestionnairesController(QuestionnairesContext context)
 {
     _context = context;
 }