private void FillControlls(IDiscountCommand command) { FillCategories(); FillStores(); FillBrands(); FillTags(); }
private static void AddDiscuont(IDiscountCommand command, Discount discount) { discount.Name = command.Name; discount.Amount = command.Amount; discount.DiscountLimitation = command.DiscountLimitation; discount.Percentage = command.Percentage; discount.StartDate = command.StartDate; discount.EndDate = command.EndDate; }