Example #1
0
        public IActionResult Create(BancoViewModel bancoViewModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(bancoViewModel));
            }

            _bancoAppService.Cadastrar(bancoViewModel);

            ViewBag.RetornoPost = OperacaoValida()
                    ? "success,Banco registrado com sucesso!"
                    : "error,Banco não registrado! Verifique as mensagens";

            return(View(bancoViewModel));
        }