public void AddComment(Comment comment) { comment.DateCreated = DateTime.Now; var repo = new BlogPostRepository(_connectionString); repo.AddComment(comment); }