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