public IActionResult ExcluirCurriculo(string id) { CurriculoDAO dao = new CurriculoDAO(); dao.Excluir(id); List <CurriculoViewModel> lista = dao.Listagem(); return(View("ListaBD", lista)); }
public IActionResult DeleteEN(string cpf) { try { CurriculoDAO dao = new CurriculoDAO(); dao.Excluir(cpf); return(RedirectToAction("ListagemEN")); } catch (Exception erro) { return(View("Error", new ErrorViewModel(erro.ToString()))); } }
public IActionResult Delete(int id) { try { CurriculoDAO dao = new CurriculoDAO(); dao.Excluir(id); return(RedirectToAction("index")); } catch (Exception erro) { return(View("Error", new ErrorViewModel(erro.ToString()))); } }