public async Task <IActionResult> Edit(int id, [Bind("cdrtxId,rtrId,orgMsgId,orgMsgNmId,orgDtTm,orgEndToEndId,orgTxId,orgClrSysRef,rtrdIntrBKSttlAmt,rtrRsnInfPrtry,orgTxRefIntrBKSttlmAmt,orgTxRefIntrBKSttlmDt,ogrSvcLvlPrtry,msgDir")] CreditTransferInstructionReturn creditTransferInstructionReturn) { if (id != creditTransferInstructionReturn.cdrtxId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(creditTransferInstructionReturn); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CreditTransferInstructionReturnExists(creditTransferInstructionReturn.cdrtxId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(creditTransferInstructionReturn)); }
public async Task <IActionResult> Create([Bind("cdrtxId,rtrId,orgMsgId,orgMsgNmId,orgDtTm,orgEndToEndId,orgTxId,orgClrSysRef,rtrdIntrBKSttlAmt,rtrRsnInfPrtry,orgTxRefIntrBKSttlmAmt,orgTxRefIntrBKSttlmDt,ogrSvcLvlPrtry,msgDir")] CreditTransferInstructionReturn creditTransferInstructionReturn) { if (ModelState.IsValid) { _context.Add(creditTransferInstructionReturn); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(creditTransferInstructionReturn)); }