コード例 #1
0
        public ActionResult DeleteQuestionSet(int id)
        {
            QuestionSetManager List     = new QuestionSetManager();
            Questionset        question = List.GetparticularQuestionSet(id);

            return(View(question));
        }
コード例 #2
0
        public ActionResult EditQuestionSet(Questionset EditedQuestion)
        {
            QuestionSetManager EditQuestion = new QuestionSetManager();

            EditQuestion.ModifyQuestionSet(EditedQuestion);
            return(RedirectToAction("ListOfQuestionSet"));
        }
コード例 #3
0
        /// <summary>
        /// method to edit a particular questionset
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult EditQuestionSet(int id)
        {
            QuestionSetManager EditQuestion      = new QuestionSetManager();
            Questionset        EditedQuestionSet = EditQuestion.GetparticularQuestionSet(id);

            return(View(EditedQuestionSet));
        }
コード例 #4
0
        public ActionResult AddQuestionSet(Questionset questionset)
        {
            QuestionSetManager createquestion = new QuestionSetManager();

            createquestion.CreateQuestionSet(questionset);
            return(RedirectToAction("ListOfQuestionSet"));
        }
コード例 #5
0
        public ActionResult DeleteConfirmedForQuestionSet(int id)
        {
            QuestionSetManager List     = new QuestionSetManager();
            Questionset        question = List.GetparticularQuestionSet(id);

            List.DeleteQuestionSet(question);
            return(RedirectToAction("ListOfQuestionSet"));
        }
コード例 #6
0
 /// <summary>
 /// manages the question set delete operation
 /// </summary>
 /// <param name="questionset"></param>
 public void DeleteQuestionSet(Questionset questionset)
 {
     {
         using (var repository = new CommonRepository <Questionset>())
         {
             repository.Delete(questionset);
         }
     }
 }
コード例 #7
0
 /// <summary>
 /// manages the question set modify operation
 /// </summary>
 /// <param name="questionset"></param>
 public void ModifyQuestionSet(Questionset questionset)
 {
     {
         using (var repository = new CommonRepository <Questionset>())
         {
             repository.Update(questionset);
         }
     }
 }