Exemple #1
0
        public IEnumerable <ITopNews> SelectAll(DateTime dateFrom, DateTime dateTo, string Heading)
        {
            IEnumerable <ITopNews> list = null;

            try
            {
                var objTopNewsDB = new TopNewsDB();
                list = objTopNewsDB.Search(dateFrom, dateTo, Heading);
            }
            catch (Exception objExp)
            {
                throw objExp;
            }
            return(list);
        }
 public IEnumerable<ITopNews> SelectAll(DateTime dateFrom, DateTime dateTo, string Heading)
 {
     IEnumerable<ITopNews> list = null;
     try
     {
         var objTopNewsDB = new TopNewsDB();
         list = objTopNewsDB.Search(dateFrom, dateTo, Heading);
     }
     catch (Exception objExp)
     {
         throw objExp;
     }
     return list;
 }