protected override void Dispose(bool disposing) { if (disposing) { //_db.Dispose(); _userManager.Dispose(); } base.Dispose(disposing); }
//[ChildActionOnly] //public ActionResult RemoveAccountList() //{ // var linkedAccounts = UserManager.GetLogins(User.Identity.GetUserId()); // ViewBag.ShowRemoveButton = HasPassword() || linkedAccounts.Count > 1; // return (ActionResult)PartialView("_RemoveAccountPartial", linkedAccounts); //} protected override void Dispose(bool disposing) { if (disposing && UserManager != null) { UserManager.Dispose(); UserManager = null; } base.Dispose(disposing); }
public void Dispose() { _userManager.Dispose(); }
public void Dispose() { db.Dispose(); uM.Dispose(); }