Exemplo n.º 1
0
        public BannerLocationInfo GetDataById(int bl_id)
        {
            BannerLocationInfo info   = new BannerLocationInfo();
            IDataReader        reader = db.GetDataById(bl_id).CreateDataReader();

            if (reader.Read())
            {
                info = BannerLocationInfo.Populate(reader);
            }
            return(info);
        }
Exemplo n.º 2
0
        public List <BannerLocationInfo> GetDataByFatherId(int fatherId)
        {
            List <BannerLocationInfo> infos = new List <BannerLocationInfo>();
            IDataReader reader = db.GetDataByFatherId(fatherId).CreateDataReader();

            while (reader.Read())
            {
                infos.Add(BannerLocationInfo.Populate(reader));
            }
            return(infos);
        }