public int InsertReply(ReplyEntity re) { int result = -1; using (TransactionScope scope = new TransactionScope(TransactionScopeOption.RequiresNew)) { ReplyDac rd = new ReplyDac(); result = rd.InsertReply(re); scope.Complete(); } return(result); }
public int DeleteReply(int num, string password) { ReplyDac rd = new ReplyDac(); return(rd.DeleteReply(num, password)); }