public static bool RoleExist(string role) { CodeFirstRoleProvider rp = new CodeFirstRoleProvider(); return rp.RoleExists(role); }