public void Patch(string id, [FromBody] MergePatchMovementConfirmationLineMvoDto value)
 {
     try {
         MovementConfirmationLineMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _movementConfirmationLineMvoApplicationService.When(value as IMergePatchMovementConfirmationLineMvo);
     } catch (Exception ex) { var response = MovementConfirmationLineMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchMovementConfirmationLineMvoDto c)
        {
            var idObj         = MovementConfirmationLineMvoProxyUtils.ToIdString((c as IMergePatchMovementConfirmationLineMvo).MovementConfirmationLineId);
            var uriParameters = new MovementConfirmationLineMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new MovementConfirmationLineMvoPatchRequest(uriParameters, (MergePatchMovementConfirmationLineMvoDto)c);
            var resp = await _ramlClient.MovementConfirmationLineMvo.Patch(req);

            MovementConfirmationLineMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchMovementConfirmationLineMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }