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); }
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); }