Example #1
0
        private Array GetNewsIds()
        {
            var newsIds =
                from newsView in News.AsEnumerable()
                select Convert.ToInt32(newsView["NewsID"]);

            var newsIdsArray = newsIds.ToArray();

            return(newsIdsArray.Length == 0 ? null : newsIdsArray);
        }