public async Task <ClientResponse> MarkForCaptureAsync(MarkForCaptureType markForCapture, string traceNumber = null) { markForCaptureType item = markForCapture.CopyToBase(); var xmlBody = new Request { Item = item }; var url = Endpoint.Url(); var request = new ClientRequest { Request = xmlBody, TraceNumber = traceNumber, }; return(await SendRequestAsync(url, request)); }
public async Task <ClientResponse> MarkForCaptureAsync(MarkForCaptureType markForCapture, string traceNumber = null) { return(await _client.MarkForCaptureAsync(markForCapture, traceNumber)); }
public ClientResponse MarkForCapture(MarkForCaptureType markForCapture, string traceNumber = null) { return(_client.MarkForCapture(markForCapture, traceNumber)); }
public ClientResponse MarkForCapture(MarkForCaptureType markForCapture, string traceNumber = null) { return(MarkForCaptureAsync(markForCapture, traceNumber).GetAwaiter().GetResult()); }