public void Patch(string id, [FromBody] MergePatchShipmentReceiptMvoDto value)
 {
     try {
         ShipmentReceiptMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _shipmentReceiptMvoApplicationService.When(value as IMergePatchShipmentReceiptMvo);
     } catch (Exception ex) { var response = ShipmentReceiptMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
Example #2
0
        public async Task WhenAsync(MergePatchShipmentReceiptMvoDto c)
        {
            var idObj         = ShipmentReceiptMvoProxyUtils.ToIdString((c as IMergePatchShipmentReceiptMvo).ShipmentReceiptId);
            var uriParameters = new ShipmentReceiptMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new ShipmentReceiptMvoPatchRequest(uriParameters, (MergePatchShipmentReceiptMvoDto)c);
            var resp = await _ramlClient.ShipmentReceiptMvo.Patch(req);

            ShipmentReceiptMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
Example #3
0
 public void When(MergePatchShipmentReceiptMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }