public void UpdateReply(Reply reply) { var original = repliesRepository.GetById(r => r.ReplyId == reply.ReplyId); repliesRepository.Update(original, reply.AutoMapObject <Reply, DB.DocumentReply>()); }
public int PostReply(Reply reply) { var dbreply = repliesRepository.Insert(reply.AutoMapObject <Reply, DB.DocumentReply>()); return(dbreply.ReplyId); }