protected override void Dispose(bool disposing) { if (disposing) { if (_userManager != null) { _userManager.Dispose(); _userManager = null; } if (_signInManager != null) { _signInManager.Dispose(); _signInManager = null; } if (_carLogic != null) { _carLogic.Dispose(); } if (_summariesLogic != null) { _summariesLogic.Dispose(); } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { _carLogic.Dispose(); _serviceLogic.Dispose(); _summariesLogic.Dispose(); } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _db.Dispose(); _homePageLogic.Dispose(); _servicesLogic.Dispose(); _summariesLogic.Dispose(); } } this.disposed = true; }