コード例 #1
0
 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); }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void When(MergePatchAttributeValueMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }