public IActionResult Index(string id, int projectId)
        {
            SurveyViewModel model = new SurveyViewModel
            {
                Questions = repository.GetAllQuestion(),
                UserId    = id,
                ProjectId = projectId
            };

            return(View(model));
        }
Exemple #2
0
 public IActionResult ListQuestion()
 {
     return(View(surveyRepository.GetAllQuestion()));
 }