public List <Entities.KhachHang.eKhachHang> GetAllKhachHang()
        {
            var dsKH = DB.Tbl_KhachHangs.ToList();
            List <Entities.KhachHang.eKhachHang> listKh = new List <Entities.KhachHang.eKhachHang>();

            foreach (Tbl_KhachHang kh_DAL in dsKH)
            {
                Entities.KhachHang.eKhachHang ekh = new Entities.KhachHang.eKhachHang();
                ekh.Makh        = kh_DAL.maKH;
                ekh.Tenkh       = kh_DAL.tenKH;
                ekh.Diachi      = kh_DAL.diachi;
                ekh.Sodienthoai = kh_DAL.sodienthoai;
                ekh.Email       = kh_DAL.email;
                ekh.Ngaycapcmnd = Convert.ToDateTime(kh_DAL.ngaycapCMND);
                ekh.Ngaysinh    = Convert.ToDateTime(kh_DAL.ngaysinh);
                ekh.Trangthai   = kh_DAL.trangthai;
                ekh.Gioitinh    = kh_DAL.gioitinh;
                ekh.Nghenghiep  = kh_DAL.nghenghiep;
                ekh.Socmnd      = kh_DAL.soCMND;

                listKh.Add(ekh);
            }
            return(listKh);
        }
        public override bool Equals(Object newKH)
        {
            eKhachHang nv = (eKhachHang)newKH;

            return(this.makh.ToLower().Equals(nv.makh.ToLower()));
        }