public async Task <bool> VoteTo([FromBody] long finalistId) { var user = await GetUser(); var voteCreation = new FinalVoteCreation(user.Id, finalistId); return(await _finalComponent.VoteToAsync(voteCreation)); }
public VoteInFinal(FinalVoteCreation voteCreation) { VoteCreation = voteCreation; }
public async Task <bool> VoteToAsync(FinalVoteCreation voteCreation) { return(await Mediator.Send(new VoteInFinal(voteCreation))); }