public List <News> List() { var data = AdoFunc.GetDataTable("select * from News where IsActive=1"); var models = AdoFunc.Map <News>(data).ToList(); return(models); }
public void List() { rptNews.DataSource = AdoFunc.GetDataTable("select * from News"); rptNews.DataBind(); }