コード例 #1
0
 public void Patch(string id, [FromBody] MergePatchShipmentItemMvoDto value)
 {
     try {
         ShipmentItemMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _shipmentItemMvoApplicationService.When(value as IMergePatchShipmentItemMvo);
     } catch (Exception ex) { var response = ShipmentItemMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
コード例 #2
0
        public async Task WhenAsync(MergePatchShipmentItemMvoDto c)
        {
            var idObj         = ShipmentItemMvoProxyUtils.ToIdString((c as IMergePatchShipmentItemMvo).ShipmentItemId);
            var uriParameters = new ShipmentItemMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new ShipmentItemMvoPatchRequest(uriParameters, (MergePatchShipmentItemMvoDto)c);
            var resp = await _ramlClient.ShipmentItemMvo.Patch(req);

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