// GET: Survey public async Task <ActionResult> Index(int?id, int?EventID, int?surveyID) { ViewBag.Templates = await surveyLogic.GetTemplates(id); ViewBag.ResponseTypes = await surveyLogic.GetResponseTypes(); ViewBag.TemplateQuestionOptions = await surveyLogic.GetQuestionOptions(id); ViewBag.Events = await surveyLogic.GetAllEvents(); ViewBag.Activities = await surveyLogic.GetEventActivities(id); ViewBag.SurveysList = await surveyLogic.GetAllSurveys(); ViewBag.AllActivities = await surveyLogic.GetActivities(); ViewBag.AllVendors = await surveyLogic.GetVendors(); ViewBag.AllSponsors = await surveyLogic.GetSponsors(); ViewBag.SurveyQuestionOptions = await surveyLogic.GetSurveyQuestionOptions(surveyID); return(View()); }