public IEnumerable <PaymentDetail> getAllCategory() { try { return(_mapper.Map <IEnumerable <PaymentDetail> >(_paymentRepository.getAllPaymentDetail())); } catch (Exception ex) { throw ex; } }
public void getAllCategory() { IEnumerable <PaymentDetail> categories = _paymentDetailRepository.getAllPaymentDetail(); Assert.True(categories != null, "failed"); }