public async Task WhenAsync(MergePatchOrderRoleMvoDto c)
        {
            var idObj         = OrderRoleMvoProxyUtils.ToIdString((c as IMergePatchOrderRoleMvo).OrderRoleId);
            var uriParameters = new OrderRoleMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new OrderRoleMvoPatchRequest(uriParameters, (MergePatchOrderRoleMvoDto)c);
            var resp = await _ramlClient.OrderRoleMvo.Patch(req);

            OrderRoleMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
        public async Task <IOrderRoleMvoState> GetAsync(OrderRoleId orderRoleId)
        {
            IOrderRoleMvoState state = null;
            var idObj         = OrderRoleMvoProxyUtils.ToIdString(orderRoleId);
            var uriParameters = new OrderRoleMvoUriParameters();

            uriParameters.Id = idObj;

            var req = new OrderRoleMvoGetRequest(uriParameters);

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

            OrderRoleMvoProxyUtils.ThrowOnHttpResponseError(resp);
            state = (resp.Content == null) ? null : resp.Content.ToOrderRoleMvoState();
            return(state);
        }
        public async Task WhenAsync(DeleteOrderRoleMvoDto c)
        {
            var idObj         = OrderRoleMvoProxyUtils.ToIdString((c as IDeleteOrderRoleMvo).OrderRoleId);
            var uriParameters = new OrderRoleMvoUriParameters();

            uriParameters.Id = idObj;

            var q = new OrderRoleMvoDeleteQuery();

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

            var req = new OrderRoleMvoDeleteRequest(uriParameters);

            req.Query = q;

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

            OrderRoleMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }