示例#1
0
        public void CreateComment(CommentDto commentDto)
        {
            var uow         = new UnitOfWork(_db);
            var commentRepo = uow.GetRepository <ICommentRepository>();

            commentRepo.Create(commentDto.FromCommentDto());
            uow.Save();
        }