Exemplo n.º 1
0
        public void AddDiscount(DiscountConfigurationDto value)
        {
            var discountConfiguration = new DiscountConfiguration();

            discountConfiguration.ID       = value.ID;
            discountConfiguration.Name     = value.Name;
            discountConfiguration.FromDate = value.FromDate;
            discountConfiguration.ToDate   = value.ToDate;
            discountConfiguration.FromTime = value.FromTime;
            discountConfiguration.ToTime   = value.ToTime;
            discountConfiguration.Rate     = value.Rate;

            this.iDiscountConfigurationDataService.AddDiscount(discountConfiguration);
        }
Exemplo n.º 2
0
 public void AddDiscount(DiscountConfiguration discountConfiguration)
 {
     databaseContext.DiscountConfiguration.Add(discountConfiguration);
     databaseContext.SaveChanges();
 }