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

            foreach (DataRow row in dal.GetLoggedEmployee().Rows)
            {
                var ins = new Employee();
                ins.Bind2(row);

                collection.Add(ins);
            }

            return collection;
        }