Пример #1
0
 public Response<ModifyUserResult> ModifyUser(ModifyUserRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     var result = Method(Functions.ModifyUser, request, ParameterValidator.ModifyUserCheckRequest);
     try
     {
         var response = JsonConvert.DeserializeObject<Response<ModifyUserResult>>(result.ToString());
         return response;
     }
     catch (Exception e)
     {
         return Response<ModifyUserResult>.BuildResponse(e);
     }
 }
Пример #2
0
 public IAsyncResult BeginModifyUser(ModifyUserRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     return BeginMethod(Functions.ModifyUser, request, ParameterValidator.ModifyUserCheckRequest, ModifyUserCallBackMethod);
 }