Esempio n. 1
0
        public ValidationResult ApplyVoucher(Voucher voucher)
        {
            var result = voucher.Validate();

            if (!result.IsValid)
            {
                return(result);
            }

            Voucher     = voucher;
            UsedVoucher = true;;
            CalculateDiscountTotalValue();
            return(result);
        }