コード例 #1
0
ファイル: GameController.cs プロジェクト: yunusea/sherlock
        public JsonResult SaveMove(int eId, int MoveCellx, int MoveCelly, string Value)
        {
            try
            {
                var gameBusiness = new GameBusiness();
                var playerId     = Convert.ToInt32(Session["AccountId"]);
                var returnMove   = gameBusiness.SaveMove(eId, MoveCellx, MoveCelly, Value);

                return(Json(returnMove, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(ex, "Beklenmedik Bir Hata Oluştur"));
            }
        }