public async Task <UpdateInsertionOrderResponse> UpdateInsertionOrderAsync( InsertionOrder insertionOrder) { var request = new UpdateInsertionOrderRequest { InsertionOrder = insertionOrder }; return(await CustomerBillingService.CallAsync((s, r) => s.UpdateInsertionOrderAsync(r), request)); }
public async Task <UpdateInsertionOrderResponse> UpdateInsertionOrderAsync(ApiAuthentication auth, InsertionOrder order) { var request = new UpdateInsertionOrderRequest { InsertionOrder = order, }; try { SetAuthHelper.SetAuth(auth, request); return(await Check().UpdateInsertionOrderAsync(request)); } catch (Exception ex) { Log(new LogEventArgs(ServiceType.CustomerBilling, "UpdateInsertionOrderAsync", ex.Message, new { Request = request }, ex)); } return(null); }