public int SendMailWhenAuditPurchaseOrder(PurchaseOrderSendMailReq request) { if (null != request) { return(ObjectFactory <PurchaseOrderAppService> .Instance.SendMailWhenAuditPurchaseOrder(request.MailContent, request.PurchaseOrderSysNo.Value, request.MailAddress)); } else { return(-1); } }
public void SendMailWhenAuditPurchaseOrder(PurchaseOrderSendMailReq request, EventHandler <RestClientEventArgs <int> > callback) { string relativeUrl = "POService/PurchaseOrder/SendMailWhenAuditPurchaseOrder"; restClient.Update <int>(relativeUrl, request, callback); }