Example #1
0
        public void DeleteDomain(int domainSysNo, int?departmentCategorySysNo, EventHandler <RestClientEventArgs <object> > callback)
        {
            string relativeUrl = "/IMService/ProductDomain/DeleteDomain";
            var    req         = new DeleteProductDomainReq
            {
                ProductDomainSysNo      = domainSysNo,
                DepartmentCategorySysNo = departmentCategorySysNo
            };

            restClient.Delete(relativeUrl, req, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }

                callback(obj, args);
            });
        }
Example #2
0
 public virtual void DeleteDomain(DeleteProductDomainReq request)
 {
     ObjectFactory <ProductDomainAppService> .Instance.Delete(request.ProductDomainSysNo.Value, request.DepartmentCategorySysNo);
 }