protected override void Dispose(bool disposing) { if (disposing && _userManager != null) { _userManager.Dispose(); _userManager = null; } if (disposing && _roleManager != null) { _roleManager.Dispose(); _roleManager = null; } base.Dispose(disposing); }
public AgentController(AgentUserManager userManager, AgentRoleManager roleManager) { UserManager = userManager; RoleManager = roleManager; }