/// <summary> /// /// </summary> /// <returns></returns> public List <TRANSACTION_INVOICE> GetTransactions() { var contexto = new ATLANEntities(); List <TRANSACTION_INVOICE> transactionList; //contexto.Database.Connection.Open(); try { transactionList = contexto.usp_ST_SYSFLEX_GET_TRANSACTIONS().ToList(); return(transactionList); } catch (EntityException ex) { log.LogExeption("Ocurrió un error: ", 2, ex); throw; } catch (Exception ex) { log.LogExeption("Ocurrió un error: ", 2, ex); throw; } finally { contexto.Dispose(); } }