Beispiel #1
0
        public async Task WhenAsync(DeleteProductCategoryMemberDto c)
        {
            var idObj         = ProductCategoryMemberProxyUtils.ToIdString((c as IDeleteProductCategoryMember).ProductCategoryMemberId);
            var uriParameters = new ProductCategoryMemberUriParameters();

            uriParameters.Id = idObj;

            var q = new ProductCategoryMemberDeleteQuery();

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

            var req = new ProductCategoryMemberDeleteRequest(uriParameters);

            req.Query = q;

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

            ProductCategoryMemberProxyUtils.ThrowOnHttpResponseError(resp);
        }
Beispiel #2
0
 public void When(DeleteProductCategoryMemberDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }