/// <summary>
        /// Links the login callback.
        /// </summary>
        /// <returns></returns>
        public virtual async Task <ActionResult> LinkLoginCallback()
        {
            var loginInfo = await _authenticationManager.GetExternalLoginInfoAsync(DmvConstants.XsrfKey, User.Identity.GetUserId());

            if (loginInfo == null)
            {
                return(RedirectToAction(MVC.Account.Manage(ManageMessageIdEnum.Error)));
            }

            var result = await _securityManager.AddLoginAsync(User.Identity.GetUserId(), loginInfo.Login);

            if (result.Succeeded)
            {
                return(RedirectToAction(MVC.Account.Manage()));
            }

            return(RedirectToAction(MVC.Account.Manage(ManageMessageIdEnum.Error)));
        }