internal void UpdateOldNewHousetypeRequest() { try { int maKH = SelectedCustomer.MAKH; int oldType = OldNewHousetypeRequest.Keys.ToList()[0]; int newType = OldNewHousetypeRequest[oldType]; QUANLYNHADATEntities db = new QUANLYNHADATEntities(); var datacontext = db.USP_UpdateCustomerDemand(maKH, newType, oldType, MACN); var screen = new Agency_IsHousePriceIncreases("Sau khi cập nhập thong tin khách hàng") { DataContext = datacontext }; screen.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }