public IActionResult CriarFuncionario(FuncionarioModel formulario) { if (ModelState.IsValid) { formulario.CriarFuncionario(); return(RedirectToAction("Index")); } return(View()); }