コード例 #1
0
        public int GetAirlineId()
        {
            if (Airlines != null)
            {
                string url = Request.UrlReferrer.Authority;

                if (!Airlines.ContainsKey(url))
                {
                    return(-1);
                }
                return(Airlines[url]);
            }
            else
            {
                Airlines = new Dictionary <string, int>();

                return(-1);
            }
        }