Пример #1
0
 public async Task <int> InsertSkippedVotes(SkippedVotes skipped)
 {
     using (var connection = new DbManager(connectionName).Connection)
     {
         return(await connection.InsertAsync <int>(skipped));
     }
 }
Пример #2
0
 public static async Task SkipVote(SkippedVotes skipped)
 {
     try
     {
         await Electionservice.Voters.InsertSkippedVotes(skipped);
     }
     catch (Exception exception)
     {
         Logger.Log(exception);
         throw;
     }
 }