private bool HasPhoneNumber() { var user = AspUserManager.FindById(User.Identity.GetUserId()); if (user != null) { return(user.PhoneNumber != null); } return(false); }
private bool HasPassword() { var user = AspUserManager.FindById(User.Identity.GetUserId()); if (user != null) { return(user.PasswordHash != null); } return(false); }