예제 #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);