예제 #1
0
        public async Task <PaymentDTO> ByID(int paymentID)
        {
            var payment = await _paymentRepository.ByID(paymentID);

            if (payment != null)
            {
                return(_mapper.Map <PaymentDTO>(payment));
            }

            return(new PaymentDTO());
        }