The Controller class has a Json method. Invoking it returns a JsonResult
. Note that it's method, not a constructor. You do not put the new
keyword in front of the method call.
return Json(ChapterScoreResultsModel.Create(DbContext, userId, chapterId));