public async Task WhenAsync(DeleteSupplierProductDto c) { var idObj = SupplierProductProxyUtils.ToIdString((c as IDeleteSupplierProduct).SupplierProductId); var uriParameters = new SupplierProductUriParameters(); uriParameters.Id = idObj; var q = new SupplierProductDeleteQuery(); q.CommandId = c.CommandId; q.RequesterId = c.RequesterId; q.Version = Convert.ToString(c.Version); var req = new SupplierProductDeleteRequest(uriParameters); req.Query = q; var resp = await _ramlClient.SupplierProduct.Delete(req); SupplierProductProxyUtils.ThrowOnHttpResponseError(resp); }
public void When(DeleteSupplierProductDto c) { WhenAsync(c).GetAwaiter().GetResult(); }