public async Task WhenAsync(MergePatchInventoryPRTriggeredDto c) { var idObj = InventoryPRTriggeredProxyUtils.ToIdString((c as IMergePatchInventoryPRTriggered).InventoryPRTriggeredId); var uriParameters = new InventoryPRTriggeredUriParameters(); uriParameters.Id = idObj; var req = new InventoryPRTriggeredPatchRequest(uriParameters, (MergePatchInventoryPRTriggeredDto)c); var resp = await _ramlClient.InventoryPRTriggered.Patch(req); InventoryPRTriggeredProxyUtils.ThrowOnHttpResponseError(resp); }
public async Task <IInventoryPRTriggeredState> GetAsync(InventoryPRTriggeredId inventoryPRTriggeredId) { IInventoryPRTriggeredState state = null; var idObj = InventoryPRTriggeredProxyUtils.ToIdString(inventoryPRTriggeredId); var uriParameters = new InventoryPRTriggeredUriParameters(); uriParameters.Id = idObj; var req = new InventoryPRTriggeredGetRequest(uriParameters); var resp = await _ramlClient.InventoryPRTriggered.Get(req); InventoryPRTriggeredProxyUtils.ThrowOnHttpResponseError(resp); state = (resp.Content == null) ? null : resp.Content.ToInventoryPRTriggeredState(); return(state); }
public async Task WhenAsync(DeleteInventoryPRTriggeredDto c) { var idObj = InventoryPRTriggeredProxyUtils.ToIdString((c as IDeleteInventoryPRTriggered).InventoryPRTriggeredId); var uriParameters = new InventoryPRTriggeredUriParameters(); uriParameters.Id = idObj; var q = new InventoryPRTriggeredDeleteQuery(); q.CommandId = c.CommandId; q.RequesterId = c.RequesterId; q.Version = Convert.ToString(c.Version); var req = new InventoryPRTriggeredDeleteRequest(uriParameters); req.Query = q; var resp = await _ramlClient.InventoryPRTriggered.Delete(req); InventoryPRTriggeredProxyUtils.ThrowOnHttpResponseError(resp); }