Esempio n. 1
0
 /// <summary>
 /// Updates account.
 /// </summary>
 /// <param name="code">Account code.</param>
 /// <param name="body">Account instance.</param>
 /// <returns>Account instance.</returns>
 public Account Update(string code, Account body)
 {
     return ExecuteRequest<Account>(new[] { ENDPOINT_POSTFIX, code }, Method.PUT, body).Data;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates account.
 /// </summary>
 /// <param name="body">Account instance.</param>
 /// <returns>Account instance.</returns>
 public Account Create(Account body)
 {
     return ExecuteRequest<Account>(new[] { ENDPOINT_POSTFIX }, Method.POST, body).Data;
 }