public void Dispose() { //if (categories != null) // categories.Dispose(); if (dbContext != null) { dbContext.Dispose(); } GC.SuppressFinalize(this); }