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 async Task <IMovementConfirmationLineMvoState> GetAsync(MovementConfirmationLineId movementConfirmationLineId)
        {
            IMovementConfirmationLineMvoState state = null;
            var idObj         = MovementConfirmationLineMvoProxyUtils.ToIdString(movementConfirmationLineId);
            var uriParameters = new MovementConfirmationLineMvoUriParameters();

            uriParameters.Id = idObj;

            var req = new MovementConfirmationLineMvoGetRequest(uriParameters);

            var resp = await _ramlClient.MovementConfirmationLineMvo.Get(req);

            MovementConfirmationLineMvoProxyUtils.ThrowOnHttpResponseError(resp);
            state = (resp.Content == null) ? null : resp.Content.ToMovementConfirmationLineMvoState();
            return(state);
        }
        public async Task WhenAsync(DeleteMovementConfirmationLineMvoDto c)
        {
            var idObj         = MovementConfirmationLineMvoProxyUtils.ToIdString((c as IDeleteMovementConfirmationLineMvo).MovementConfirmationLineId);
            var uriParameters = new MovementConfirmationLineMvoUriParameters();

            uriParameters.Id = idObj;

            var q = new MovementConfirmationLineMvoDeleteQuery();

            q.CommandId   = c.CommandId;
            q.RequesterId = c.RequesterId;
            q.Version     = Convert.ToString(c.MovementConfirmationVersion);

            var req = new MovementConfirmationLineMvoDeleteRequest(uriParameters);

            req.Query = q;

            var resp = await _ramlClient.MovementConfirmationLineMvo.Delete(req);

            MovementConfirmationLineMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }