protected override void Dispose(bool disposing) { if (disposing) { superheroRepository?.Dispose(); filmSuperheroesRepository?.Dispose(); db?.Dispose(); } base.Dispose(disposing); }