Beispiel #1
0
        public BELine GetLineById(int idLine)
        {
            BELine oLine = new BELine();
            using (SqlConnection con = new SqlConnection(CadenaConexion))
            {
                try
                {
                    con.Open();
                    DCLine odcLine = new DCLine();
                    oLine = odcLine.GetLineabyId(con, idLine);

                }
                catch (Exception ex)
                {
                    GrabarLog(ex);

                }
                return oLine;
            }
        }
Beispiel #2
0
        public List<BELine>ListaLineas()
        {
            List<BELine> lbeLine = null;

            using (SqlConnection con = new SqlConnection(CadenaConexion))
            {
                try
                {
                    con.Open();
                    DCLine odcLine = new DCLine();
                    lbeLine = odcLine.ListaLineas(con);

                }
                catch (Exception ex)
                {
                    GrabarLog(ex);

                }
                return lbeLine;
            }
        }