Beispiel #1
0
 public CustomUserValidator(AppUserManager mgr) : base(mgr)
 {
 }
Beispiel #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));
        }