Beispiel #1
0
        public Comment AddComment(string commentText, User user, IdeationReply ideationReply)
        {
            var commentToAdd = new Comment
            {
                CommentText   = commentText,
                Hidden        = false,
                IdeationReply = ideationReply,
                User          = user,
                Created       = DateTime.Now,
                Reports       = new List <Report>()
            };

            return(_ideationRepository.AddComment(commentToAdd));;
        }