Пример #1
0
        public static List <CountryModal> GetCountry()
        {
            using (var context = new SalesReturndbEntities())
            {
                var list = context.SP_GetCountry().ToList();
                List <CountryModal> cityList = null;
                if (list != null)
                {
                    cityList = list.Select(x => new CountryModal()
                    {
                        CountryName = x.Country
                    }).ToList();

                    return(cityList);
                }
                return(cityList);
            }
        }