예제 #1
0
        public void UpdateReply(Reply reply)
        {
            var original = repliesRepository.GetById(r => r.ReplyId == reply.ReplyId);

            repliesRepository.Update(original, reply.AutoMapObject <Reply, DB.DocumentReply>());
        }
예제 #2
0
        public int PostReply(Reply reply)
        {
            var dbreply = repliesRepository.Insert(reply.AutoMapObject <Reply, DB.DocumentReply>());

            return(dbreply.ReplyId);
        }