Ejemplo n.º 1
0
        public ActionResult <string> GetPaymentsByUser(long id)
        {
            var paymentDetails = _paymentsRepository.GetPaymentsByUser(id);

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