Example #1
0
        public ActionResult <string> GetPaymentsForMentor(long id)
        {
            var paymentDetails = _paymentsRepository.GetPaymentsForMentor(id);

            if (paymentDetails != null && paymentDetails.Count > 0)
            {
                return(Ok(paymentDetails));
            }
            return(NoContent());
        }