public async Task <IActionResult> Create([Bind("BancoId,BancoNome")] Banco banco) { if (ModelState.IsValid) { _context.Add(banco); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(banco)); }
public async Task <IActionResult> Create([Bind("BancoContaId,ContaNumero,ContaSeguradora,BancoId,BRFSC")] BancoConta bancoConta) { if (ModelState.IsValid) { _context.Add(bancoConta); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(bancoConta)); }