public static bool HasLogin(this IPrincipal iPrincipal, string Login) { return(iPrincipal.GetLogin() == Login); }