public IActionResult Salvar4(CurriculoViewModel curriculo, string id) { try { if (curriculo.idioma1 == null) { curriculo.idioma1 = ""; } if (curriculo.idioma2 == null) { curriculo.idioma2 = ""; } if (curriculo.idioma3 == null) { curriculo.idioma3 = ""; } CurriculoDAO dao = new CurriculoDAO(); if (curriculo.cpf == null) { curriculo.cpf = id; } dao.Inserir4(curriculo); return(View("CadastroConfirma")); } catch (Exception erro) { return(View("Error", new ErrorViewModel(erro.ToString()))); } }