private async Task <IActionResult> UpdateExistingVote(VoteDto voteDto, Vote vote, CancellationToken ct) { if (vote.Value == voteDto.Value) { return(Accepted()); } vote.Value = voteDto.Value; await _context.SaveChangesAsync(ct); if (vote.Value > 0) { await _context.ChangeUpVoteAsync(voteDto.CommentId, ct).ConfigureAwait(false); } else { await _context.ChangeDownVoteAsync(voteDto.CommentId, ct).ConfigureAwait(false); } return(Accepted()); }