public async Task <ApiResponse <TResult> > InvokeCreateRequestAsync <TResult>(Uri uri, IDictionary <string, object> parameters) { var builder = new MultipartDataFormRequestBuilder(); builder.Add(parameters); var request = CreateRequest(uri, WebRequestMethods.Http.Post); await builder.ApplyToAsync(request); return(await EvaluateAsync <TResult>(await ExecuteRequestAsync(request))); }
public ApiResponse <TResult> InvokeCreateRequest <TResult>(Uri uri, IDictionary <string, object> parameters) { var builder = new MultipartDataFormRequestBuilder(); builder.Add(parameters); var request = CreateRequest(uri, WebRequestMethods.Http.Post); builder.ApplyTo(request); return(Evaluate <TResult>(ExecuteRequest(request))); }