public async Task <ActionResult <Models.Comment> > PostComment(Models.Comment comment) { await _context.Create(comment); await _context.SaveChangesAsync(); return(CreatedAtAction(nameof(GetComment), new { id = comment.id }, comment)); }