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)); }
public IActionResult Ask(CourseAndQuestions model, string returnUrl = null) { return(View(model)); }