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

            if (value.ShipmentPackageContentId == null)
            {
                value.ShipmentPackageContentId = idObj;
            }
            else if (!((ICreateOrMergePatchOrDeleteShipmentPackageContentMvo)value).ShipmentPackageContentId.Equals(idObj))
            {
                throw DomainError.Named("inconsistentId", "Argument Id {0} NOT equals body Id {1}", id, value.ShipmentPackageContentId);
            }
        }
        public void Put(string id, [FromBody] CreateOrMergePatchOrDeleteShipmentPackageContentMvoDto value)
        {
            try {
                // ///////////////////////////////
                if (value.ShipmentPackageVersion != default(long))
                {
                    value.CommandType = CommandType.MergePatch;
                    ShipmentPackageContentMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                    _shipmentPackageContentMvoApplicationService.When(value as IMergePatchShipmentPackageContentMvo);
                    return;
                }
                // ///////////////////////////////

                ShipmentPackageContentMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                _shipmentPackageContentMvoApplicationService.When(value as ICreateShipmentPackageContentMvo);
            } catch (Exception ex) { var response = ShipmentPackageContentMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
        }