public JsonResult Result(/*int answer, int questionId*/) { //return View(); //List<AnsweredQuestion> answeredquestion = new List<AnsweredQuestion>(); //try //{ // using (var ctx = new Context()) // { // answeredquestion = ctx.AnsweredQuestion.Where(a => a.Answer == answer && a.QuestionId == questionId).Select(a => // new AnsweredQuestion // { // AnsweredQuestionId = a.AnsweredQuestionId, // Answer = a.Answer, // QuestionId = a.QuestionId // } // ).ToList(); // } //} //catch (Exception) //{ // throw; //} //return View(); return(Json(_iFAnsweredSurveyResult.List(0))); }
//public ActionResult Static() //{ // return View(); //} public JsonResult Static() { return(Json(_iFAnsweredSurveyResult.List(0))); }