public async Task <IActionResult> Create(PerfilViewModel perfil) { if (ModelState.IsValid) { _perfilService.Criar(perfil); return(RedirectToAction(nameof(Index))); } return(View(perfil)); }