public bool themChiTietPhong(CHITIETPHONG chiTietPhong)
        {
            try
            {
                ketNoi.CHITIETPHONGs.InsertOnSubmit(chiTietPhong);
                ketNoi.SubmitChanges();
                return(true);
            }
            catch (Exception)
            {
                return(false);

                throw;
            }
        }
 public bool capNhatChiTietPhong(CHITIETPHONG chiTietPhong)
 {
     try
     {
         var ketQua = from chiTietPhongTam in ketNoi.CHITIETPHONGs
                      where chiTietPhongTam.MAPHONG == chiTietPhong.MAPHONG
                      select chiTietPhongTam;
         foreach (var tam in ketQua)
         {
             tam.GIOITINH        = chiTietPhong.GIOITINH;
             tam.DIACHITHUONGTRU = chiTietPhong.DIACHITHUONGTRU;
             tam.NGAYSINH        = chiTietPhong.NGAYSINH;
             tam.SOCMND          = chiTietPhong.SOCMND;
             tam.SODIENTHOAI     = chiTietPhong.SODIENTHOAI;
             tam.TENKHACH        = chiTietPhong.TENKHACH;
         }
         ketNoi.SubmitChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 partial void UpdateCHITIETPHONG(CHITIETPHONG instance);
 partial void DeleteCHITIETPHONG(CHITIETPHONG instance);
 partial void InsertCHITIETPHONG(CHITIETPHONG instance);