public static string LastName(this IPrincipal user) { //Contract.Requires<ArgumentNullException>(user != null, "user"); AppUser appUser = user.GetAppUser(); if (appUser == null) { return(string.Empty); } return(appUser.LastName); }