public async Task WhenAsync(MergePatchInOutLineMvoDto c) { var idObj = InOutLineMvoProxyUtils.ToIdString((c as IMergePatchInOutLineMvo).InOutLineId); var uriParameters = new InOutLineMvoUriParameters(); uriParameters.Id = idObj; var req = new InOutLineMvoPatchRequest(uriParameters, (MergePatchInOutLineMvoDto)c); var resp = await _ramlClient.InOutLineMvo.Patch(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); }
public async Task <IInOutLineMvoState> GetAsync(InOutLineId inOutLineId) { IInOutLineMvoState state = null; var idObj = InOutLineMvoProxyUtils.ToIdString(inOutLineId); var uriParameters = new InOutLineMvoUriParameters(); uriParameters.Id = idObj; var req = new InOutLineMvoGetRequest(uriParameters); var resp = await _ramlClient.InOutLineMvo.Get(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); state = (resp.Content == null) ? null : resp.Content.ToInOutLineMvoState(); return(state); }
public async Task WhenAsync(DeleteInOutLineMvoDto c) { var idObj = InOutLineMvoProxyUtils.ToIdString((c as IDeleteInOutLineMvo).InOutLineId); var uriParameters = new InOutLineMvoUriParameters(); uriParameters.Id = idObj; var q = new InOutLineMvoDeleteQuery(); q.CommandId = c.CommandId; q.RequesterId = c.RequesterId; q.Version = Convert.ToString(c.InOutVersion); var req = new InOutLineMvoDeleteRequest(uriParameters); req.Query = q; var resp = await _ramlClient.InOutLineMvo.Delete(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); }