public async Task WhenAsync(MergePatchGoodIdentificationTypeDto c) { var idObj = (c as IMergePatchGoodIdentificationType).GoodIdentificationTypeId; var uriParameters = new GoodIdentificationTypeUriParameters(); uriParameters.Id = idObj; var req = new GoodIdentificationTypePatchRequest(uriParameters, (MergePatchGoodIdentificationTypeDto)c); var resp = await _ramlClient.GoodIdentificationType.Patch(req); GoodIdentificationTypeProxyUtils.ThrowOnHttpResponseError(resp); }
public async Task <IGoodIdentificationTypeState> GetAsync(string goodIdentificationTypeId) { IGoodIdentificationTypeState state = null; var idObj = goodIdentificationTypeId; var uriParameters = new GoodIdentificationTypeUriParameters(); uriParameters.Id = idObj; var req = new GoodIdentificationTypeGetRequest(uriParameters); var resp = await _ramlClient.GoodIdentificationType.Get(req); GoodIdentificationTypeProxyUtils.ThrowOnHttpResponseError(resp); state = (resp.Content == null) ? null : resp.Content.ToGoodIdentificationTypeState(); return(state); }
public async Task WhenAsync(DeleteGoodIdentificationTypeDto c) { var idObj = (c as IDeleteGoodIdentificationType).GoodIdentificationTypeId; var uriParameters = new GoodIdentificationTypeUriParameters(); uriParameters.Id = idObj; var q = new GoodIdentificationTypeDeleteQuery(); q.CommandId = c.CommandId; q.RequesterId = c.RequesterId; q.Version = Convert.ToString(c.Version); var req = new GoodIdentificationTypeDeleteRequest(uriParameters); req.Query = q; var resp = await _ramlClient.GoodIdentificationType.Delete(req); GoodIdentificationTypeProxyUtils.ThrowOnHttpResponseError(resp); }