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 void Put(string id, [FromBody] CreateOrMergePatchOrDeleteInventoryPRTriggeredDto value)
        {
            try {
                // ///////////////////////////////
                if (value.Version != default(long))
                {
                    value.CommandType = CommandType.MergePatch;
                    InventoryPRTriggeredsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                    _inventoryPRTriggeredApplicationService.When(value as IMergePatchInventoryPRTriggered);
                    return;
                }
                // ///////////////////////////////

                InventoryPRTriggeredsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                _inventoryPRTriggeredApplicationService.When(value as ICreateInventoryPRTriggered);
            } catch (Exception ex) { var response = InventoryPRTriggeredsControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
        }