public async Task <int> DeleteByIdAsync(int id) { var player = await _context .Players .FindAsync(id); _context.Players.Remove(player); return(await _context.SaveChangesAsync()); }
public async Task <int> DeleteByIdAsync(int id) { var game = await _context .Games .FindAsync(id); _context.Games.Remove(game); return(await _context.SaveChangesAsync()); }