Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }