Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }