public static MvcHtmlString GetUserName(this HtmlHelper html, string id) { AppUserManager manager = HttpContext.Current.GetOwinContext().GetUserManager <AppUserManager>(); return(new MvcHtmlString(manager.FindByIdAsync(id).Result.UserName)); }
public CustomUserValidator(AppUserManager manager) : base(manager) { }