public void Patch(string id, [FromBody] MergePatchAttributeValueMvoDto value)
 {
     try {
         AttributeValueMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _attributeValueMvoApplicationService.When(value as IMergePatchAttributeValueMvo);
     } catch (Exception ex) { var response = AttributeValueMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchAttributeValueMvoDto c)
        {
            var idObj         = AttributeValueMvoProxyUtils.ToIdString((c as IMergePatchAttributeValueMvo).AttributeValueId);
            var uriParameters = new AttributeValueMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new AttributeValueMvoPatchRequest(uriParameters, (MergePatchAttributeValueMvoDto)c);
            var resp = await _ramlClient.AttributeValueMvo.Patch(req);

            AttributeValueMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchAttributeValueMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }