public static object IsHomePage(object data) { string path = HttpContext.Current.Request.RawUrl.ToLower(); return HomePages.Any(s => s == path); }