public async Task <IActionResult> PutPaymentInstruction(int id, PaymentInstruction.Models.PaymentInstruction paymentInstruction)
        {
            if (id != paymentInstruction.Id)
            {
                return(BadRequest());
            }

            _context.Entry(paymentInstruction).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!PaymentInstructionExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <PaymentInstruction.Models.PaymentInstruction> > PostPaymentInstruction(PaymentInstruction.Models.PaymentInstruction paymentInstruction)
        {
            _context.PaymentInstruction.Add(paymentInstruction);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetPaymentInstruction", new { id = paymentInstruction.Id }, paymentInstruction));
        }