public async Task <PaymentDTO> Get(string paymentId) { PaymentDTO paymentDTO = null; Payment payment = await _paymentData.Get(paymentId); if (payment != null) { paymentDTO = _mapper.Map <Payment, PaymentDTO>(payment); } return(paymentDTO); }