public static List <BodyShopPrivateLabelBL> getData() { SummitDS.BodyShop_PrivateLabelDataTable thisTable = getAdapter().GetData(); if (thisTable != null && thisTable.Rows.Count > 0) { return(BuildFromTable(thisTable)); } return(null); }
/// <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); }