Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public int DeleteReply(int num, string password)
        {
            ReplyDac rd = new ReplyDac();

            return(rd.DeleteReply(num, password));
        }