public void Patch(string id, [FromBody] MergePatchGoodIdentificationMvoDto value)
 {
     try {
         GoodIdentificationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _goodIdentificationMvoApplicationService.When(value as IMergePatchGoodIdentificationMvo);
     } catch (Exception ex) { var response = GoodIdentificationMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
 public void Delete(string id, string commandId, string version, string requesterId = default(string))
 {
     try {
         var value = new DeleteGoodIdentificationMvoDto();
         value.CommandId      = commandId;
         value.RequesterId    = requesterId;
         value.ProductVersion = (long)Convert.ChangeType(version, typeof(long));
         GoodIdentificationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _goodIdentificationMvoApplicationService.When(value as IDeleteGoodIdentificationMvo);
     } catch (Exception ex) { var response = GoodIdentificationMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public void Put(string id, [FromBody] CreateOrMergePatchOrDeleteGoodIdentificationMvoDto value)
        {
            try {
                // ///////////////////////////////
                if (value.ProductVersion != default(long))
                {
                    value.CommandType = CommandType.MergePatch;
                    GoodIdentificationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                    _goodIdentificationMvoApplicationService.When(value as IMergePatchGoodIdentificationMvo);
                    return;
                }
                // ///////////////////////////////

                GoodIdentificationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                _goodIdentificationMvoApplicationService.When(value as ICreateGoodIdentificationMvo);
            } catch (Exception ex) { var response = GoodIdentificationMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
        }