Exemplo n.º 1
0
        /// <summary>
        /// Add UserId and ElectionId to HasVoted joining table
        /// </summary>
        /// <param name="hasVoted">Unique UserId and Unique ElectionId</param>
        /// <returns></returns>
        public async Task AddUserToElection(HasVoted hasVoted)
        {
            _context.HasVoted.Add(hasVoted);

            await _context.SaveChangesAsync();
        }
Exemplo n.º 2
0
 public Task AddUserToElection(HasVoted hasVoted)
 {
     throw new NotImplementedException();
 }