Exemple #1
0
        public async void AddPromotionAsync(String s, Object d)
        {
            var promotion = new Promotion(s, (Discount)d);

            var promotionResult = await _companyService.AddPromotion(Company.Id, promotion);

            Promotions.Add(promotionResult);
            AlertService.Toast("Promotie toegevoegd", $"De promotie {promotionResult.Description} toegevoegd");
        }