コード例 #1
0
        public IActionResult toAsk(CourseAndQuestions model, string returnUrl = null)
        {
            var QL       = from ql in db.Questions where ql.CourseId == model.CourseId select ql;
            var newmodel = new CourseAndQuestions {
                CourseId     = model.CourseId,
                QuestionList = QL.ToList <QuestionModel>()
            };

            return(PartialView("Ask", newmodel));
        }
コード例 #2
0
 public IActionResult Ask(CourseAndQuestions model, string returnUrl = null)
 {
     return(View(model));
 }