public static List <KeHoachVe> List(string tenRap, string khanDaiID, string suatChieu, string ngayChieu) { List <KeHoachVe> lstKeHoachVe = new List <KeHoachVe>(); DataTable dt = DAOkeHoachVe.GetAll(tenRap, khanDaiID, suatChieu, ngayChieu); foreach (DataRow dr in dt.Rows) { KeHoachVe kh = new KeHoachVe(); kh.TenPhim = dr["tenphim"].ToString(); kh.TenRap = dr["tenrap"].ToString(); kh.KhanDai = dr["khanDaiID"].ToString(); kh.NgayChieu = Convert.ToDateTime(dr["ngaychieu"].ToString()); kh.SuatChieu = dr["suatchieu"].ToString(); kh.LoaiPhim = dr["loaiphim"].ToString(); kh.PhuDe = Convert.ToBoolean(dr["phude"].ToString()); lstKeHoachVe.Add(kh); } return(lstKeHoachVe); }