Ejemplo n.º 1
0
        public List <KhachHang> getDanhSachDoan(int idDoan)
        {
            List <KhachHang> listKH = new List <KhachHang>();

            using (var db = new ManageHotelEntities())
            {
                var list = db.sp_LayDanhSachDoan(idDoan).ToList();
                foreach (var kh in list)
                {
                    listKH.Add(createKhachHang(kh));
                }
                return(listKH);
            }
        }