Esempio n. 1
0
        public ActionResult MovieList(movie m)
        {
            //movie m = new movie();
            //m.title = "ok";
            //m.director = "ok2";
            List<movie> rt = new List<movie>();
            rt.Add(m);

            movie m2 = new movie();
            m2.title = "ok";
            m2.director = "sssssssss";
            rt.Add(m2);
            return Json(rt, JsonRequestBehavior.AllowGet);
        }
Esempio n. 2
0
 public ActionResult json2(movie m)
 {
     return Json(m,JsonRequestBehavior.AllowGet);
 }