Exemple #1
0
 public CustomUserValidator(AppUserManager mgr) : base(mgr)
 {
 }
Exemple #2
0
        public static MvcHtmlString GetUserName(this HtmlHelper html, string id)
        {
            AppUserManager mgr = HttpContext.Current.GetOwinContext().GetUserManager <AppUserManager>();

            return(new MvcHtmlString(mgr.FindByIdAsync(id).Result.UserName));
        }