public int UpdateEvaluador(Models.VALORACIONESPROGRESS.formulario_id2 oVALORACIONESPROGRESS) { //Guid methodOwnerID = new Guid("F43FBFC5-C42C-429C-83E4-7E1442285C62"); 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_id2 oVALORACIONESPROGRESS) { //Guid methodOwnerID = new Guid("13DBE469-B375-4610-9186-E62B4DA8D2DA"); 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); } }