public void Update(long IdKhachhang, string TenKhachhang, string DiaChi, string NguoiLienhe, string DienThoai, string Email, string Fax, short?SolanDky, string MotaThem, DateTime?NgayDangky, string NguoiTao, DateTime?NgayTao, string NguoiSua, DateTime?NgaySua, string IpMaytao, string IpMaysua)
        {
            KnDanhsachKhachhang item = new KnDanhsachKhachhang();

            item.MarkOld();
            item.IsLoaded = true;

            item.IdKhachhang = IdKhachhang;

            item.TenKhachhang = TenKhachhang;

            item.DiaChi = DiaChi;

            item.NguoiLienhe = NguoiLienhe;

            item.DienThoai = DienThoai;

            item.Email = Email;

            item.Fax = Fax;

            item.SolanDky = SolanDky;

            item.MotaThem = MotaThem;

            item.NgayDangky = NgayDangky;

            item.NguoiTao = NguoiTao;

            item.NgayTao = NgayTao;

            item.NguoiSua = NguoiSua;

            item.NgaySua = NgaySua;

            item.IpMaytao = IpMaytao;

            item.IpMaysua = IpMaysua;

            item.Save(UserName);
        }
 public bool Destroy(object IdKhachhang)
 {
     return(KnDanhsachKhachhang.Destroy(IdKhachhang) == 1);
 }
 public bool Delete(object IdKhachhang)
 {
     return(KnDanhsachKhachhang.Delete(IdKhachhang) == 1);
 }