public static void SetNullIdOrThrowOnInconsistentIds(string id, CreateOrMergePatchOrDeleteOrderItemShipGroupAssociationMvoDto value)
        {
            var idObj = ParseIdString(id.IsNormalized() ? id : id.Normalize());

            if (value.OrderItemShipGroupAssociationId == null)
            {
                value.OrderItemShipGroupAssociationId = idObj;
            }
            else if (!((ICreateOrMergePatchOrDeleteOrderItemShipGroupAssociationMvo)value).OrderItemShipGroupAssociationId.Equals(idObj))
            {
                throw DomainError.Named("inconsistentId", "Argument Id {0} NOT equals body Id {1}", id, value.OrderItemShipGroupAssociationId);
            }
        }
        public void Put(string id, [FromBody] CreateOrMergePatchOrDeleteOrderItemShipGroupAssociationMvoDto value)
        {
            try {
                // ///////////////////////////////
                if (value.OrderVersion != default(long))
                {
                    value.CommandType = CommandType.MergePatch;
                    OrderItemShipGroupAssociationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                    _orderItemShipGroupAssociationMvoApplicationService.When(value as IMergePatchOrderItemShipGroupAssociationMvo);
                    return;
                }
                // ///////////////////////////////

                OrderItemShipGroupAssociationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                _orderItemShipGroupAssociationMvoApplicationService.When(value as ICreateOrderItemShipGroupAssociationMvo);
            } catch (Exception ex) { var response = OrderItemShipGroupAssociationMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
        }