public DealerZipCode Copy() { DealerZipCode _dealerZipCode = new DealerZipCode(); _dealerZipCode.DealerID = _dealerID; _dealerZipCode.ZipGeoCodeID = _zipGeoCodeID; return(_dealerZipCode); }
static public void DeleteDealerZipCode(DealerZipCode objDealerZipCode) { Database db = DatabaseFactory.CreateDatabase("BKLeadsOnline"); System.Data.Common.DbCommand dbCommand = db.GetStoredProcCommand("p_DealerZipCodeDelete"); db.AddInParameter(dbCommand, "DealerID", DbType.Int32, objDealerZipCode.DealerID); db.AddInParameter(dbCommand, "ZipGeoCodeID", DbType.Int32, objDealerZipCode.ZipGeoCodeID); db.ExecuteNonQuery(dbCommand); }