private void CheckBelongs() { if (!IsSupplier && DataBaseClient.ReadSupplier(Company.id) != null) { DataBaseClient.DeleteSupplier(Company.id); } else if (IsSupplier && DataBaseClient.ReadSupplier(Company.id) == null) { DataBaseClient.CreateSupplier(Company.id); } if (!IsCustomer && DataBaseClient.ReadCustomer(Company.id) != null) { DataBaseClient.DeleteCustomer(Company.id); } else if (IsCustomer && DataBaseClient.ReadCustomer(Company.id) == null) { DataBaseClient.CreateCustomer(Company.id); } }