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; } }
public void GetUserByID(int ID) { var userByName = _paymentDetailRepository.GetPaymentDetailByID(ID); Assert.True(userByName != null, "failed"); }