Пример #1
0
        public async Task <IActionResult> MakeVote([FromQuery] int votingOptionId)
        {
            var makeVoteDto = new MakeVoteDto
            {
                VotingOptionId = votingOptionId,
                User           = User
            };
            await _votingService.MakeVoteAsync(makeVoteDto);

            return(Redirect(Request.Headers["Referer"].ToString()));
        }