示例#1
0
        private async Task CreateStopwatchAsync()
        {
            var sw = new UserStopwatch(Context.Author.Id);

            await _dbContext.Stopwatches.AddAsync(sw);
        }
示例#2
0
 private void DeleteStopwatch(UserStopwatch sw)
 => _dbContext.Stopwatches.Remove(sw);