public async Task <Comment> AddComment(Comment comment) { _context.Attach(comment.Author); _context.Attach(comment.Article); _context.Add(comment); await _context.SaveChangesAsync(); return(comment); }