public async Task <IActionResult> Edit(int id, [Bind("txStsId,stsId,orgEndToEndId,orgTxId,stsRsnPrtry,clrSysRef,orgTxRefIntrBKSttlmAmt,orgTxRefIntrBkSttlDt,orgTxRefDbtrAgtBIC,orgTxRefCdtrAgtBIC")] CreditTransferStatus creditTransferStatus)
        {
            if (id != creditTransferStatus.txStsId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(creditTransferStatus);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!CreditTransferStatusExists(creditTransferStatus.txStsId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(creditTransferStatus));
        }
        public async Task <IActionResult> Create([Bind("txStsId,stsId,orgEndToEndId,orgTxId,stsRsnPrtry,clrSysRef,orgTxRefIntrBKSttlmAmt,orgTxRefIntrBkSttlDt,orgTxRefDbtrAgtBIC,orgTxRefCdtrAgtBIC")] CreditTransferStatus creditTransferStatus)
        {
            if (ModelState.IsValid)
            {
                _context.Add(creditTransferStatus);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(creditTransferStatus));
        }