public void Dispose() { if (this.database != null) { this.database.Dispose(); this.database = null; } }
public SqlDatabaseConcertRepository(ConcertDataContext database, IDistributedCache cache) { this.database = database; this.cache = cache; }