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); }
/// <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); }