Exemple #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); }
 }
        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);
        }
 public void When(MergePatchShipmentItemMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }