public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { userManager.Dispose(); roleManager.Dispose(); clientManager.Dispose(); recipeManager.Dispose(); productManager.Dispose(); recipeProductManager.Dispose(); recipeClientProfileManager.Dispose(); rankManager.Dispose(); } this.disposed = true; } }