Пример #1
0
 public Response<bool> DeleteUser(DeleteUserRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     var result = Method(Functions.DeleteUser, request, ParameterValidator.DeleteUserCheckRequest);
     try
     {
         var response = JsonConvert.DeserializeObject<Response<bool>>(result.ToString());
         return response;
     }
     catch (Exception e)
     {
         return Response<bool>.BuildResponse(e);
     }
 }
Пример #2
0
 public IAsyncResult BeginDeleteUser(DeleteUserRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     return BeginMethod(Functions.DeleteUser, request, ParameterValidator.DeleteUserCheckRequest, DeleteUserCallBackMethod);
 }