public IActionResult UpdatePayment(int id, ReqPay payment)
        {
            var pa = _context.Payments.First(i => i.Id == id);

            pa.NameOnCard = payment.data.attributes.NameOnCard;

            _context.Payments.Update(pa);
            _context.SaveChanges();
            return(Ok(pa));
        }
 public IActionResult PostPayment(ReqPay payment)
 {
     _context.Payments.Add(payment.data.attributes);
     _context.SaveChanges();
     return(Ok(payment));
 }