public static bool IsUserInRole(string user, string role) { CodeFirstRoleProvider rp = new CodeFirstRoleProvider(); return rp.IsUserInRole(user, role); }