public async Task <T> AddMatchAsync <T>(IRankedMatch match) where T : IRankedMatch { match.CalculateElo(); await _repository.AddMatchAsync(match); return((T)match); }
public async Task AddMatchAsync(IRankedMatch match) { await _context.AddAsync(match); await _context.SaveChangesAsync(); }