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); }
public void AddDiscount(DiscountConfiguration discountConfiguration) { databaseContext.DiscountConfiguration.Add(discountConfiguration); databaseContext.SaveChanges(); }