public IActionResult ListaBD() { CurriculoDAO dao = new CurriculoDAO(); List <CurriculoViewModel> lista = dao.Listagem(); return(View(lista)); }
public IActionResult ExcluirCurriculo(string id) { CurriculoDAO dao = new CurriculoDAO(); dao.Excluir(id); List <CurriculoViewModel> lista = dao.Listagem(); return(View("ListaBD", lista)); }
public IActionResult Index() { ViewBag.Idioma = getSelectedLanguage(); CurriculoDAO dao = new CurriculoDAO(); List <CurriculoViewModel> lista = dao.Listagem(); return(View(lista)); }
public IActionResult ListagemEN() { try { CurriculoDAO dao = new CurriculoDAO(); List <CurriculoViewModel> lista = dao.Listagem(); return(View(lista)); } catch (Exception erro) { return(View("Error", new Exception(erro.ToString()))); } }