Esempio n. 1
0
        public ActionResult QueryTest()
        {
            var model = new TestClass();
            model = model.GetFromDb(DbContext);
            // return json
            var json = JsonConvert.SerializeObject(model);

            return Content(json, "application/json");
        }
Esempio n. 2
0
 public ActionResult Index()
 {
     var model = new TestClass();
     model = model.GetFromDb(DbContext);
     return View();
 }