Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }