protected override void Dispose(bool disposing) { if (disposing) { rep.Dispose(); } base.Dispose(disposing); }
public void Dispose() { if (_disposed) { return; } _genreRepository?.Dispose(); _disposed = true; GC.SuppressFinalize(this); }
public void Dispose() { _genreRepository.Dispose(); }
protected override void Dispose(bool disposing) { genreRepository.Dispose(); base.Dispose(disposing); }