Exemplo n.º 1
0
 public Response<AddUserResult> AddUser(AddUserRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     var result = Method(Functions.AddUser, request, ParameterValidator.AddUserCheckRequest);
     try
     {
         var response = JsonConvert.DeserializeObject<Response<AddUserResult>>(result.ToString());
         return response;
     }
     catch (Exception e)
     {
         return Response<AddUserResult>.BuildResponse(e);
     }
 }
Exemplo n.º 2
0
 public IAsyncResult BeginAddUser(AddUserRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     return BeginMethod(Functions.AddUser, request, ParameterValidator.AddUserCheckRequest, AddUserCallBackMethod);
 }