コード例 #1
0
 public void Patch(string id, [FromBody] MergePatchOrderItemShipGroupAssociationMvoDto value)
 {
     try {
         OrderItemShipGroupAssociationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _orderItemShipGroupAssociationMvoApplicationService.When(value as IMergePatchOrderItemShipGroupAssociationMvo);
     } catch (Exception ex) { var response = OrderItemShipGroupAssociationMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
コード例 #2
0
        public async Task WhenAsync(MergePatchOrderItemShipGroupAssociationMvoDto c)
        {
            var idObj         = OrderItemShipGroupAssociationMvoProxyUtils.ToIdString((c as IMergePatchOrderItemShipGroupAssociationMvo).OrderItemShipGroupAssociationId);
            var uriParameters = new OrderItemShipGroupAssociationMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new OrderItemShipGroupAssociationMvoPatchRequest(uriParameters, (MergePatchOrderItemShipGroupAssociationMvoDto)c);
            var resp = await _ramlClient.OrderItemShipGroupAssociationMvo.Patch(req);

            OrderItemShipGroupAssociationMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
コード例 #3
0
 public void When(MergePatchOrderItemShipGroupAssociationMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }