public void AddItem(Exame exame, string status, DateTime data) { ExamesDoAtendimento item = new ExamesDoAtendimento(this); item.DataExame = data; item.ObjExame = exame; item.Status = status; ListaExamesDoAtendimento.Add(item); }
public void Remove() { using (TransactionScope scopo = new TransactionScope()) { //foreach (var item in listaExamesDoAtendimento) //{ // item.Remove(); //} ExamesDoAtendimento.RemoveExamesDoAtendimento(this); new AtendimentoDAO().Apagar(this); scopo.Complete(); } }