Exemple #1
0
        public ActionResult Cadastro(Agencia agencia)
        {
            agencia.RegistroAtivo = true;
            var id        = repository.Inserir(agencia);
            var resultado = new { id = id };

            return(RedirectToAction("Index", new { id = id }));
        }