public void Patch(string id, [FromBody] MergePatchInventoryItemRequirementEntryMvoDto value)
 {
     try {
         InventoryItemRequirementEntryMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _inventoryItemRequirementEntryMvoApplicationService.When(value as IMergePatchInventoryItemRequirementEntryMvo);
     } catch (Exception ex) { var response = InventoryItemRequirementEntryMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchInventoryItemRequirementEntryMvoDto c)
        {
            var idObj         = InventoryItemRequirementEntryMvoProxyUtils.ToIdString((c as IMergePatchInventoryItemRequirementEntryMvo).InventoryItemRequirementEntryId);
            var uriParameters = new InventoryItemRequirementEntryMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new InventoryItemRequirementEntryMvoPatchRequest(uriParameters, (MergePatchInventoryItemRequirementEntryMvoDto)c);
            var resp = await _ramlClient.InventoryItemRequirementEntryMvo.Patch(req);

            InventoryItemRequirementEntryMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchInventoryItemRequirementEntryMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }