コード例 #1
0
        public IActionResult ExcluirCurriculo(string id)
        {
            CurriculoDAO dao = new CurriculoDAO();

            dao.Excluir(id);
            List <CurriculoViewModel> lista = dao.Listagem();

            return(View("ListaBD", lista));
        }
コード例 #2
0
 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())));
     }
 }
コード例 #3
0
 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())));
     }
 }