public ActionResult Update(int id) { try { AnsweredQuestion answeredquestion = _iFAnsweredQuestion.Read(id); return(View(answeredquestion)); } catch (Exception ex) { return(View(new AnsweredQuestion())); } }
public JsonResult Read(QuestionResultFilter questionResultFilter) { try { var answeredQuestions = _iFAnsweredQuestion.Read(questionResultFilter); return(Json(answeredQuestions)); } catch (Exception ex) { return(Json(ex)); } }