Ejemplo n.º 1
0
        public static List<Employee> GetAllEmployees()
        {
            var dal = new EmployeeDAL();
            var collection = new List<Employee>();

            foreach (DataRow row in dal.GetAllEmployees().Rows)
            {
                var instance = new Employee();
                instance.Bind2(row);
                collection.Add(instance);
            }

            return collection;
        }