public ActionResult DeleteQuestionSet(int id) { QuestionSetManager List = new QuestionSetManager(); Questionset question = List.GetparticularQuestionSet(id); return(View(question)); }
public ActionResult EditQuestionSet(Questionset EditedQuestion) { QuestionSetManager EditQuestion = new QuestionSetManager(); EditQuestion.ModifyQuestionSet(EditedQuestion); return(RedirectToAction("ListOfQuestionSet")); }
/// <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)); }
public ActionResult AddQuestionSet(Questionset questionset) { QuestionSetManager createquestion = new QuestionSetManager(); createquestion.CreateQuestionSet(questionset); return(RedirectToAction("ListOfQuestionSet")); }
public ActionResult DeleteConfirmedForQuestionSet(int id) { QuestionSetManager List = new QuestionSetManager(); Questionset question = List.GetparticularQuestionSet(id); List.DeleteQuestionSet(question); return(RedirectToAction("ListOfQuestionSet")); }
/// <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); } } }
/// <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); } } }