public void AddDeliveryCostConfiguration(DeliveryCostConfigurationDto value)
        {
            var deliveryCostConfiguration = new DeliveryCostConfiguration();

            deliveryCostConfiguration.Name           = value.Name;
            deliveryCostConfiguration.Description    = value.Description;
            deliveryCostConfiguration.BaseLocationID = value.BaseLocationID;
            deliveryCostConfiguration.BaseFare       = value.BaseFare;
            deliveryCostConfiguration.BaseDistance   = value.BaseDistance;
            deliveryCostConfiguration.AdditionalRate = value.AdditionalRate;


            this.deliveryCostConfigurationService.AddDeliveryCostConfiguration(deliveryCostConfiguration);
        }
Exemple #2
0
 public void AddDeliveryCostConfiguration(DeliveryCostConfiguration deliveryCostConfiguration)
 {
     dataContext.DeliveryCostConfiguration.Add(deliveryCostConfiguration);
     dataContext.SaveChanges();
 }