示例#1
0
 public async Task <int> InsertSkippedVotes(SkippedVote skipped)
 {
     using (var connection = new DbManager(connectionName).Connection)
     {
         return(await connection.InsertAsync <int>(skipped));
     }
 }
示例#2
0
        //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);
            }
        }