App.Web.Controllers.AccountController.RemoveExternalLogins C# (CSharp) Method

RemoveExternalLogins() private method

private RemoveExternalLogins ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult RemoveExternalLogins()
        {
            var externalLogins = this.membership.GetOpenAuthAccounts(User.Identity.Name).Select(account => new ExternalLogin
            {
                Provider = account.ProviderName,
                ProviderDisplayName = OpenAuth.AuthenticationClients.GetDisplayName(account.ProviderName),
                ProviderUserId = account.ProviderUserID,
            }).ToList();

            ViewBag.ShowRemoveButton = externalLogins.Count > 1 || this.membership.HasPassword(User.Identity.Name);
            return this.PartialView("_RemoveExternalLoginsPartial", externalLogins);
        }