public ActionResult <string> GetPaymentsByUser(long id) { var paymentDetails = _paymentsRepository.GetPaymentsByUser(id); if (paymentDetails != null && paymentDetails.Count > 0) { return(Ok(paymentDetails)); } return(NoContent()); }