Ejemplo n.º 1
0
 public string Excluir(int idProjeto)
 {
     try
     {
         Projeto tp = Obter(idProjeto);
         projetoRepository.Excluir(tp);
         projetoRepository.SalvarAlteracoes();
         return(null);
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
Ejemplo n.º 2
0
 public IActionResult Excluir(int id)
 {
     _projetoRepository.Excluir(id);
     return(RedirectToAction("MenuCoordenador", "Menu"));
 }