public int UpdateEvaluador(Models.VALORACIONESPROGRESS.formulario_id1 oVALORACIONESPROGRESS) { //Guid methodOwnerID = new Guid("cf2d3afc-5b23-47fc-a07d-2e69f331384f"); OpenDbConn(); //if(cDblib.Transaction.ownerID.Equals(new Guid())) cDblib.beginTransaction(methodOwnerID); try{ DAL.VALORACIONESPROGRESS cVALORACIONESPROGRESS = new DAL.VALORACIONESPROGRESS(cDblib); int result = cVALORACIONESPROGRESS.UpdateEvaluador(oVALORACIONESPROGRESS); //Finalizar transacción //if (cDblib.Transaction.ownerID.Equals(methodOwnerID)) cDblib.commitTransaction(methodOwnerID); return(result); } catch (Exception ex) { //rollback //if (cDblib.Transaction.ownerID.Equals(new Guid())) cDblib.rollbackTransaction(methodOwnerID); throw new IBException(106, "Ocurrió un error al intentar actualizar la evaluación en base de datos.", ex); } }
public int UpdateEvaluado(Models.VALORACIONESPROGRESS.formulario_id1 oVALORACIONESPROGRESS) { //Guid methodOwnerID = new Guid("E547390C-6CE3-425A-B963-B302E5950235"); OpenDbConn(); //if (cDblib.Transaction.ownerID.Equals(new Guid())) cDblib.beginTransaction(methodOwnerID); try { DAL.VALORACIONESPROGRESS cVALORACIONESPROGRESS = new DAL.VALORACIONESPROGRESS(cDblib); int result = cVALORACIONESPROGRESS.UpdateEvaluado(oVALORACIONESPROGRESS); //Finalizar transacción //if (cDblib.Transaction.ownerID.Equals(methodOwnerID)) cDblib.commitTransaction(methodOwnerID); return(result); } catch (Exception ex) { //rollback //if (cDblib.Transaction.ownerID.Equals(new Guid())) cDblib.rollbackTransaction(methodOwnerID); throw new IBException(107, "Ocurrió un error al intentar actualizar la evaluación en base de datos.", ex); } }