Пример #1
0
        public JsonResult NodeClicked(int a, int b, int c)
        {
            //string id = ReadFromRequest("id");
            theGame = (SetGame.Game) this.ControllerContext.HttpContext.Session["__MySessionGame"];

            //string json = JavaScriptConvert.SerializeObject(node);
            return this.Json(this.theGame.Move(a,b,c));
        }
Пример #2
0
 public ActionResult Index()
 {
     this.ControllerContext.HttpContext.Session.Add("__MySessionGame", new SetGame.Game());
     theGame = (SetGame.Game) this.ControllerContext.HttpContext.Session["__MySessionGame"];
     return View(theGame);
 }