public IActionResult GetVotes()
        {
            var objectId = User.Claims.First(claim => claim.Type == ClaimConstants.ObjectId).Value;
            var tenantId = User.Claims.First(claim => claim.Type == ClaimConstants.TenantId).Value;

            if (_votesService.HasVoted(tenantId, objectId) is false)
            {
                return(BadRequest("You must vote before you can see the votes"));
            }

            return(Ok(_votesService.GetVotes().Select(vote => new { vote.Candidate, vote.CreatedAt })));
        }