public void Patch(string id, [FromBody] MergePatchInventoryPRTriggeredDto value)
 {
     try {
         InventoryPRTriggeredsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _inventoryPRTriggeredApplicationService.When(value as IMergePatchInventoryPRTriggered);
     } catch (Exception ex) { var response = InventoryPRTriggeredsControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        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 void When(MergePatchInventoryPRTriggeredDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }