Esempio n. 1
0
 public JsonResult UpdateGame(string game)
 {
     if(game == null)
         return Json(new game(), JsonRequestBehavior.AllowGet);
     GameModel data = new GameModel();
     JavaScriptSerializer json_serializer = new JavaScriptSerializer();
     game myGame = (game)json_serializer.DeserializeObject(game);
     data.UpdateGame(myGame);
     return Json(myGame, JsonRequestBehavior.AllowGet);
 }