public ActionResult SongAddVote(int Id) { Song song = repository.GetSongById(Id); var userId = this.User.FindFirstValue(ClaimTypes.NameIdentifier); CheckAvailableVotes voteData = repository.CheckVotesData(userId); voteData.song = song; return(View(voteData)); }
public ActionResult BandsRecordAddVote(int Id) { var userId = this.User.FindFirstValue(ClaimTypes.NameIdentifier); BandsRecord bandsrecord = repository.GetBandsRecordById(Id); CheckAvailableVotes voteData = repository.CheckVotesData(userId); voteData.bandsrecord = bandsrecord; return(View(voteData)); }