Example #1
0
 public void Patch(string id, [FromBody] MergePatchOrderItemMvoDto value)
 {
     try {
         OrderItemMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _orderItemMvoApplicationService.When(value as IMergePatchOrderItemMvo);
     } catch (Exception ex) { var response = OrderItemMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchOrderItemMvoDto c)
        {
            var idObj         = OrderItemMvoProxyUtils.ToIdString((c as IMergePatchOrderItemMvo).OrderItemId);
            var uriParameters = new OrderItemMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new OrderItemMvoPatchRequest(uriParameters, (MergePatchOrderItemMvoDto)c);
            var resp = await _ramlClient.OrderItemMvo.Patch(req);

            OrderItemMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchOrderItemMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }