public void Excluir(int id) { try { using (TransactionScope ts = new TransactionScope()) { _data.Deletar(_data.Obter(d => d.Codigo == id));; ts.Complete(); } } catch (Exception e) { throw; } }