예제 #1
0
        public JsonResult EncounterSave(int Et, int Id)
        {
            try
            {
                var gameBusiness = new GameBusiness();
                var playerId     = Convert.ToInt32(Session["AccountId"]);
                gameBusiness.SaveEncounter(playerId, Et, Id);
                var Encounter = gameBusiness.GetEncounterByPlayerId(playerId, Id);

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