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); }); }
public virtual void DeleteDomain(DeleteProductDomainReq request) { ObjectFactory <ProductDomainAppService> .Instance.Delete(request.ProductDomainSysNo.Value, request.DepartmentCategorySysNo); }