public async Task <IActionResult> GetPayments(int customerId)
        {
            if (customerId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }
            var payments = await _repo.GetPayments();

            var paymentsToReturn = _mapper.Map <IEnumerable <PaymentReturnDTO> >(payments);

            return(Ok(paymentsToReturn));
        }