public Rate(Tariff tariff, Zone zone, double peakRate, double offPeakRate) { this.Tariff = tariff; this.Zone = zone; this.PeakRate = peakRate; this.OffPeakRate = offPeakRate; }
public bool Update(Zone zone) { return database.ExecuteNonQuery(CreateUpdateCommand(zone.Id, zone.Name)) == 1; }