public SalesPersonCollection GetSalesPersonCollection(string where, string orderBy) { SalesPersonData data = new SalesPersonData(); SalesPersonCollection col = new SalesPersonCollection(); try { col = data.GetAllSalesPersonsDynamicCollection(where, orderBy); } catch (Exception ex) { log.Write(ex.Message, "GetSalesPersonCollection"); throw (ex); } finally { data = null; } return(col); }
public SalesPersonCollection GetAllSalesPersonsCollection() { SalesPersonData data = new SalesPersonData(); SalesPersonCollection col = new SalesPersonCollection(); try { col = data.GetAllSalesPersonsCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllSalesPersonsCollection"); throw (ex); } finally { data = null; } return(col); }