public void ActualizaSituacion(int IdInvoice, int IdStatus) { try { InvoiceDL Invoice = new InvoiceDL(); Invoice.ActualizaSituacion(IdInvoice, IdStatus); //INSPECTION CERTIFICATE DETAIL InspectionCertificateDL InspectionCertificate = new InspectionCertificateDL(); List <InvoiceDetailBE> lstInvoiceDetail = null; lstInvoiceDetail = new InvoiceDetailDL().ListaTodosActivo(IdInvoice); foreach (var item in lstInvoiceDetail) { InspectionCertificate.ActualizaSituacion(item.IdInspectionCertificate, 14); } } catch (Exception ex) { throw ex; } }
public void ActualizaSituacionMasivo(List <InvoiceBE> pListaInvoice) { try { using (TransactionScope ts = new TransactionScope()) { InvoiceDL objInvoice = new InvoiceDL(); foreach (InvoiceBE item in pListaInvoice) { objInvoice.ActualizaSituacion(item.IdInvoice, item.IdStatus); } ts.Complete(); } } catch (Exception ex) { throw ex; } }