Пример #1
0
        /// <summary>
        /// Date Created:   19/10/2012
        /// Created By:     Josephine Gad
        /// (description)   Get the generic class of country
        /// </summary>
        public static void GetRestrictedNationalityList(bool IsViewBoth, bool IsRestricted, int CountryID)
        {
            List <NationalityGenericClass> list = new List <NationalityGenericClass>();

            list = CountryDAL.GetRestrictedNationalityList(IsViewBoth, IsRestricted, CountryID);
            if (IsViewBoth)
            {
                HttpContext.Current.Session["NationalityGenericClass_NonRestNationalityList"] = list[0].NonRestNationalityList;
                HttpContext.Current.Session["NationalityGenericClass_RestNationalityList"]    = list[0].RestNationalityList;
                HttpContext.Current.Session["NationalityGenericClass_RestNationalityCount"]   = list[0].RestNationalityCount;
            }
        }