Ejemplo n.º 1
0
        public async Task <IActionResult> Get([FromRoute] int id)
        {
            GetVotingDto getVotingDto = await _votingService.GetVotingAsync(id);


            getVotingDto.UserVoted = await _votingService.HasUserVotedAsync(id, User.GetUserId());

            return(View(getVotingDto));
        }