private void UpdateNameAndAddressAndDetail(KHACHHANG KhachHang) { if (KhachHang is null) { throw new System.ArgumentNullException(nameof(KhachHang)); } using (var db = new QUANLYNHADATEntities()) { try { db.USP_UpdateCustomerDetail(KhachHang.MAKH, KhachHang.CNQUANLY, KhachHang.TEN, KhachHang.DIACHI, KhachHang.CHITIET); db.SaveChanges(); this.Reset(); } catch (System.Exception ex) { MessageBox.Show(ex.ToString()); } } }