Beispiel #1
0
 public void Patch(string id, [FromBody] MergePatchOrderDto value)
 {
     try {
         OrdersControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _orderApplicationService.When(value as IMergePatchOrder);
     } catch (Exception ex) { var response = OrdersControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
Beispiel #2
0
        public async Task WhenAsync(MergePatchOrderDto c)
        {
            var idObj         = (c as IMergePatchOrder).OrderId;
            var uriParameters = new OrderUriParameters();

            uriParameters.Id = idObj;

            var req  = new OrderPatchRequest(uriParameters, (MergePatchOrderDto)c);
            var resp = await _ramlClient.Order.Patch(req);

            OrderProxyUtils.ThrowOnHttpResponseError(resp);
        }
Beispiel #3
0
 public void When(MergePatchOrderDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }