public TariffExtra( string name, string description, TariffExtraType type, ExtraApplicationType applicationType, decimal rate, FuelRateType fuelRateType, AccessorialRateType accessorialRateType, int tariffId) { Name = name; Description = description; Type = type; ApplicationType = applicationType; Rate = rate; FuelRateType = fuelRateType; AccessorialRateType = accessorialRateType; TariffId = tariffId; LastModified = DateTime.UtcNow; }
public void Update( string name, string description, TariffExtraType type, ExtraApplicationType applicationType, decimal rate, FuelRateType fuelRateType, AccessorialRateType accessorialRateType, int?tariffId) { if (tariffId.HasValue) { TariffId = tariffId.Value; } Name = name; Description = description; Type = type; ApplicationType = applicationType; Rate = rate; FuelRateType = fuelRateType; AccessorialRateType = accessorialRateType; LastModified = DateTime.UtcNow; }