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