public JsonResult getInfoUser() { try { string UserId = getCurrentUserId(); var userInfo = _userInfoServices.UserInfoGameView(UserId); return(Json(new { Status = 1, TotalCoin = userInfo.TotalCoin, RealCoin = userInfo.RealCoin, Amount = userInfo.Amount, TotalBet = userInfo.TotalBet }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { Status = 0 }, JsonRequestBehavior.AllowGet)); } }