Exemplo n.º 1
0
 public ActionResult Test2()
 {
     ChildView child = new ChildView();
     string childJson = JsonHelper.Serialize(child);
     JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
     string childJson1 = javaScriptSerializer.Serialize(child);
     return Content(childJson1, "application/Json");
 }
Exemplo n.º 2
0
 public ActionResult Test()
 {
     ChildView child = new ChildView();
     return Json(child, JsonRequestBehavior.AllowGet);
 }