Ejemplo n.º 1
0
        public void AddComment(NewComment comment)
        {
            CommentsModel model = new CommentsModel()
            {
                CommentBody = comment.Body,
                Title       = comment.Title,
                NewsLookup  = int.Parse(comment.LookupID),
                //_DCDateCreated = DateTime.Now,
            };

            repo.AddElement(model);
        }