Пример #1
0
        public static List <BodyShopPrivateLabelBL> BuildFromTable(DataTable dtTable)
        {
            List <BodyShopPrivateLabelBL> _list = new List <BodyShopPrivateLabelBL>();

            if (dtTable != null)
            {
                foreach (DataRow dr in dtTable.Rows)
                {
                    BodyShopPrivateLabelBL _thisMember = new BodyShopPrivateLabelBL(dr);
                    _list.Add(_thisMember);
                }
            }
            return(_list);
        }
Пример #2
0
        /// <summary>
        /// Returns list of private label shop
        /// </summary>
        /// <param name="iPrivateLabelId"></param>
        /// <returns></returns>
        public static List <BodyShopPrivateLabelBL> GetShopListByPrivateLabelId(Int32 iPrivateLabelId)
        {
            List <BodyShopPrivateLabelBL> _list = new List <BodyShopPrivateLabelBL>();

            SummitDS.BodyShop_PrivateLabelDataTable thisTable = getAdapter().GetShopListByPrivateLabelId(iPrivateLabelId);
            if (thisTable != null && thisTable.Rows.Count > 0)
            {
                foreach (DataRow dr in thisTable.Rows)
                {
                    BodyShopPrivateLabelBL _thisMember = new BodyShopPrivateLabelBL(dr);
                    _list.Add(_thisMember);
                }
            }
            return(_list);
        }