Exemple #1
0
 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));
     }
 }
Exemple #2
0
        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());
            }
        }
Exemple #3
0
 public PageQuestionDTO SavePageQuestion(PageQuestionDTO dto)
 {
     return(QuestionnaireAdminDataManager.Instance.SavePageQuestion(dto));
 }