public void Actualiza(SolicitudEppBE pItem, List <SolicitudEppDetalleBE> pListaSolicitudEppDetalle) { try { using (TransactionScope ts = new TransactionScope()) { SolicitudEppDL SolicitudEpp = new SolicitudEppDL(); SolicitudEppDetalleDL SolicitudEppDetalle = new SolicitudEppDetalleDL(); foreach (SolicitudEppDetalleBE item in pListaSolicitudEppDetalle) { if (item.TipoOper == Convert.ToInt32(Operacion.Nuevo)) //Nuevo { item.IdSolicitudEpp = pItem.IdSolicitudEpp; SolicitudEppDetalle.Inserta(item); } else { SolicitudEppDetalle.Actualiza(item); } } SolicitudEpp.Actualiza(pItem); ts.Complete(); } } catch (Exception ex) { throw ex; } }
public void Actualiza(SolicitudEppDetalleBE pItem) { try { SolicitudEppDetalleDL SolicitudEppDetalle = new SolicitudEppDetalleDL(); SolicitudEppDetalle.Actualiza(pItem); } catch (Exception ex) { throw ex; } }