コード例 #1
0
ファイル: GameController.cs プロジェクト: yunusea/sherlock
        public JsonResult GetGameList()
        {
            try
            {
                var gameBusiness = new GameBusiness();
                var gameList     = gameBusiness.GetAllGameList();

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