public ActionResult QueryTest() { var model = new TestClass(); model = model.GetFromDb(DbContext); // return json var json = JsonConvert.SerializeObject(model); return Content(json, "application/json"); }
public ActionResult Index() { var model = new TestClass(); model = model.GetFromDb(DbContext); return View(); }