public async Task <PaymentDTO> ByID(int paymentID) { var payment = await _paymentRepository.ByID(paymentID); if (payment != null) { return(_mapper.Map <PaymentDTO>(payment)); } return(new PaymentDTO()); }