public ActionResult AddPageQuestion(int schemeId, int pageId, PageQuestionDTO dto) { if (ModelState.IsValid) { dto = QuestionnaireAdminBusinessManager.Instance.SavePageQuestion(dto); return(RedirectToAction("ViewPageQuestion", new { schemeId = schemeId, pageId = pageId, pageQuestionId = dto.PageQuestionID, selectedTab = PageQuestionTabs.PageQuestionDetails })); } else { AddAdditionPageQuestionViewData(); return(View(dto)); } }
public ActionResult EditPageQuestion(int schemeId, int pageId, int pageQuestionId) { PageQuestionDTO dto = QuestionnaireAdminBusinessManager.Instance.LoadPageQuestion(pageQuestionId); if (dto != null) { AddAdditionPageQuestionViewData(); return(View(dto)); } else { throw new HttpException("Could not load page question id " + pageQuestionId.ToString()); } }
public PageQuestionDTO SavePageQuestion(PageQuestionDTO dto) { return(QuestionnaireAdminDataManager.Instance.SavePageQuestion(dto)); }