Beispiel #1
0
        public async Task <GetPaymentTypeDto> CreatePaymentTypeAsync(CreatePaymentTypeDto paymentTypeDto)
        {
            await CheckPaymentTypeAsync(0, paymentTypeDto.Name);

            var paymentType = _mapper.Map <PaymentType>(paymentTypeDto);

            paymentType = await _paymentType.AddPaymentTypeAsync(paymentType);

            return(_mapper.Map <GetPaymentTypeDto>(paymentType));
        }