コード例 #1
0
        public static MvcHtmlString GetUserName(this HtmlHelper html, string id)
        {
            AppUserManager manager = HttpContext.Current.GetOwinContext().GetUserManager <AppUserManager>();

            return(new MvcHtmlString(manager.FindByIdAsync(id).Result.UserName));
        }
コード例 #2
0
 public CustomUserValidator(AppUserManager manager) : base(manager)
 {
 }