Beispiel #1
0
 public ActionResult Cadastrar(UsuarioDto model)
 {
     try
     {
         _servicoUsuario.Cadastrar(model);
         return(RedirectToAction("Index"));
     }
     catch (Exception e)
     {
         TempData["Erro"] = e.Message;
         return(View(model));
     }
 }