Exemplo n.º 1
0
        public List <ReleaseManagementModel> GetAllEmployees()
        {
            List <ReleaseManagementModel> employees = new List <ReleaseManagementModel>();
            DataSet dsGetAllEmployees = dal.GetAllEmployees();
            ReleaseManagementModel employee;

            foreach (DataRow row in dsGetAllEmployees.Tables[0].Rows)
            {
                employee              = new ReleaseManagementModel();
                employee.EmployeeId   = row[1].ToString();
                employee.EmployeeName = row[2].ToString();
                employees.Add(employee);
            }
            return(employees);
        }