コード例 #1
0
        public bool UpdateAccount(TaiKhoan tk)
        {
            RestRequest request = new RestRequest("account", Method.PUT);
            string data = Post(request, tk);
            bool result = (bool)DeserializeObject(data, typeof(bool));

            return result;
        }
コード例 #2
0
        //protected string access_token = ConfigurationManager.AppSettings["access_token"];
        public int CreateAccount(TaiKhoan account)
        {
            RestRequest request = new RestRequest("account", Method.POST);
            string data = Post(request, account);
            int result = (int)DeserializeObject(data, typeof(int));

            return result;
        }