public IActionResult GetUserByID(int Id)
 {
     try
     {
         PaymentDetail _PaymentDetail = _mapper.Map <PaymentDetail>(_paymentRepository.GetPaymentDetailByID(Id));
         return(_PaymentDetail == null?NotFound(_PaymentDetail) : (IActionResult)Ok(200));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
        public void GetUserByID(int ID)
        {
            var userByName = _paymentDetailRepository.GetPaymentDetailByID(ID);

            Assert.True(userByName != null, "failed");
        }