private void Dispose(bool disposing) { if (!disposed) { if (disposing) { _accountManager.Dispose(); _roleManager.Dispose(); _dbContext.Dispose(); } } }