Пример #1
0
 /// <summary>
 /// Add User and Election to joining table
 /// </summary>
 /// <param name="hasVoted">Unique UserId and Unique ElectionId</param>
 /// <returns></returns>
 public async Task AddUserToElection(HasVotedViewModel hasVoted)
 {
     await _electionRepository.AddUserToElection(HasVotedViewModel.ToDataModel(hasVoted));
 }