public async Task <int> InsertSkippedVotes(SkippedVote skipped) { using (var connection = new DbManager(connectionName).Connection) { return(await connection.InsertAsync <int>(skipped)); } }
//private static readonly ILogger Logger=new SystemEventLoggerService(); //private static readonly IService _context = new _context(); public async Task SkipVote(SkippedVote skipped) { try { await _context.SkippedVotes.AddAsync(skipped); } catch (Exception exception) { //Logger<>.Log(exception); Console.WriteLine(exception); } }