/// <summary>
        /// Finds the first browser culture list in language list.
        /// </summary>
        /// <param name="filterContext">The filter context.</param>
        /// <param name="cultureLanguageList">The culture language list.</param>
        /// <returns>System.String.</returns>
        private static string FindFirstBrowserCultureListInLanguageList(ActionExecutingContext filterContext,
                                                                        IList <string> cultureLanguageList)
        {
            string s = String.Empty;
            /* Gets Languages from Browser */
            //IList<string> cultureLanguageList = cultureEnumerable.ToList();
            ////IList<string> browserLanguageList = filterContext.RequestContext.HttpContext.Request.UserLanguages;
            HttpBrowserInfo httpBrowserInfo = new HttpBrowserInfo(filterContext);//, cultureLanguageList);

            if (/*browserLanguageList*/ httpBrowserInfo.BrowserLanguageList != null)
            {
                foreach (string browserLanguage in /*browserLanguageList*/ httpBrowserInfo.BrowserLanguageList)
                {
                    foreach (string cultureLanguage in cultureLanguageList)
                    {
                        if (cultureLanguage != browserLanguage)
                        {
                            continue;
                        }
                        s = cultureLanguage;
                    }
                }
            }
            return(s);
        }
        /// <summary>
        /// Finds the session culture value in language list.
        /// </summary>
        /// <param name="filterContext">The filter context.</param>
        /// <param name="cultureLanguageList">The culture language list.</param>
        /// <returns>System.String.</returns>
        private static string FindSessionCultureValueInLanguageList(ActionExecutingContext filterContext,
                                                                    IList <string> cultureLanguageList)
        {
            HttpBrowserInfo httpBrowserInfo = new HttpBrowserInfo(filterContext);//, cultureLanguageList);

            return((httpBrowserInfo.HasSessionCultureValue &&
                    cultureLanguageList.Contains(httpBrowserInfo.SessionCultureString))
                        ? httpBrowserInfo.SessionCultureString : String.Empty);

            /*string s = String.Empty;
             * HttpBrowserInfo httpBrowserInfo = new HttpBrowserInfo(filterContext, cultureLanguageList);
             * if (!String.IsNullOrEmpty(httpBrowserInfo.SessionCultureString))
             * {
             *  s = cultureLanguageList.Contains(httpBrowserInfo.SessionCultureString) ? httpBrowserInfo.SessionCultureString : String.Empty;
             * }
             * return s;*/
            /*
             * if (filterContext.RequestContext.HttpContext.Session != null && filterContext.RequestContext.HttpContext.Session["Culture"] != null)
             * {
             *  string sessionCulture = filterContext.RequestContext.HttpContext.Session["Culture"].ToString();
             *
             *  if (!String.IsNullOrEmpty(sessionCulture))
             *  {
             *      return cultureLanguageList.Contains(sessionCulture)
             *                                       ? sessionCulture
             *                                       : String.Empty;
             *  }
             *  return String.Empty;
             * }
             * return String.Empty;*/
        }
        /// <summary>
        /// Finds the cookie culture value in language list.
        /// </summary>
        /// <param name="filterContext">The filter context.</param>
        /// <param name="cultureLanguageList">The culture language list.</param>
        /// <returns>System.String.</returns>
        private static string FindCookieCultureValueInLanguageList(ActionExecutingContext filterContext,
                                                                   IList <string> cultureLanguageList)
        {
            /* Get the language in the cookie*/
            //HttpCookie userCookie = filterContext.RequestContext.HttpContext.Request.Cookies["Culture"];
            HttpBrowserInfo httpBrowserInfo = new HttpBrowserInfo(filterContext);//, cultureLanguageList);

            return((cultureLanguageList.Contains(httpBrowserInfo.CookieCultureString))
                    ? httpBrowserInfo.CookieCultureString
                    : String.Empty);

            /*string s = String.Empty;
             * if (cultureLanguageList.Contains(httpBrowserInfo.CookieCultureString))
             * {
             *  s = httpBrowserInfo.CookieCultureString;
             * }
             * return s;*/
            /*if (userCookie != null)
             * {
             *  if (!String.IsNullOrEmpty(userCookie.Value))
             *  {
             *      if (cultureLanguageList.Contains(userCookie.Value))
             *      {
             *          return userCookie.Value;
             *      }
             *      return String.Empty;
             *  }
             *  return String.Empty;
             * }
             * return String.Empty;*/
        }