コード例 #1
0
        public ActionResult SalvarEvento(Evento evento)
        {
            try
            {
                EventoDAL.SalvarEvento(evento);
            }
            catch (Exception)
            {
                System.Console.WriteLine("falhou");
                return(View(nameof(Cadastro)));

                throw;
            }
            return(View(nameof(Cadastro)));
        }