public IEnumerable <NhanVienDTO> get_AllNhanVien() { List <NhanVienDTO> list_nv = new List <NhanVienDTO>(); DataTable dataTable = new DataTable(); dataTable = NhanVienDAO.GetAll_table(); foreach (DataRow dr in dataTable.Rows) { NhanVienDTO nv = new NhanVienDTO(); nv.MaNV = dr["MaNV"].ToString(); nv.HoTen = dr["HoTen"].ToString(); nv.ChucVu = dr["ChucVu"].ToString(); nv.SDT = dr["SDT"].ToString(); nv.GioiTinh = dr["GioiTinh"].ToString(); nv.NgaySinh = DateTime.Parse(dr["NgaySinh"].ToString()); nv.DiaChi = dr["DiaChi"].ToString(); nv.Luong = dr["Luong"].ToString(); nv.NgayVL = DateTime.Parse(dr["NgayVL"].ToString()); list_nv.Add(nv); } return(list_nv); }