public bool ExcluirProjeto(Projetos projeto) { try { _projetos.Excluir(c => c == projeto); _projetos.Commit(); return true; } catch { return false; } }
public bool EditarProjeto(Projetos projetos) { try { _projetos.Atualizar(projetos); _projetos.Commit(); return true; } catch { return false; } }
public bool AdicionarProjeto(Projetos projeto) { try { _projetos.Adicionar(projeto); _projetos.Commit(); return true; } catch (Exception) { return false; } }