public void Elimina(SolicitudEppBE pItem) { try { using (TransactionScope ts = new TransactionScope()) { SolicitudEppDL SolicitudEpp = new SolicitudEppDL(); SolicitudEppDetalleDL SolicitudEppDetalle = new SolicitudEppDetalleDL(); List <SolicitudEppDetalleBE> lstSolicitudEppDetalle = null; lstSolicitudEppDetalle = new SolicitudEppDetalleDL().ListaTodosActivo(pItem.IdSolicitudEpp); foreach (SolicitudEppDetalleBE item in lstSolicitudEppDetalle) { SolicitudEppDetalle.Elimina(item); } SolicitudEpp.Elimina(pItem); ts.Complete(); } } catch (Exception ex) { throw ex; } }
public void Elimina(SolicitudEppDetalleBE pItem) { try { SolicitudEppDetalleDL SolicitudEppDetalle = new SolicitudEppDetalleDL(); SolicitudEppDetalle.Elimina(pItem); } catch (Exception ex) { throw ex; } }