示例#1
0
        public EmployeeCollection GetEmployeesCollection(string whereExpression, string orderByExpression)
        {
            EmployeeCollection col  = new EmployeeCollection();
            EmployeeData       data = new EmployeeData();

            try
            {
                col = data.GetEmployeeDynamicCollection(whereExpression, orderByExpression);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetEmployeesCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
示例#2
0
        public EmployeeCollection GetAllEmployeesCollection()
        {
            EmployeeCollection col  = new EmployeeCollection();
            EmployeeData       data = new EmployeeData();

            try
            {
                col = data.GetAllEmployeesCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllEmployeesCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }