public IEnumerable <ITopNews> SelectTopNewsForActivate() { IEnumerable <ITopNews> list = null; try { var objTopNewsDB = new TopNewsDB(); list = objTopNewsDB.SelectTopNewsForActivate(); } catch (Exception objExp) { throw objExp; } return(list.ToList().FindAll(v => v.IsActive == 0 && v.IsApproved == 1).OrderByDescending(v => v.DttmModified)); }
public IEnumerable<ITopNews> SelectTopNewsForActivate() { IEnumerable<ITopNews> list = null; try { var objTopNewsDB = new TopNewsDB(); list = objTopNewsDB.SelectTopNewsForActivate(); } catch (Exception objExp) { throw objExp; } return list.ToList().FindAll(v => v.IsActive == 0 && v.IsApproved == 1).OrderByDescending(v => v.DttmModified); }