Ejemplo n.º 1
0
        public SalaDTO read(SalaDTO salaDTO)
        {
            SalaDTO retornoDTO = new SalaDTO();

            SalaDAO   salaDAO = new SalaDAO();
            DataTable dt      = new DataTable();

            dt = salaDAO.read(salaDTO);

            foreach (DataRow row in dt.Rows)
            {
                retornoDTO.salaID      = Convert.ToInt64(row["salaID"].ToString());
                retornoDTO.numero      = row["numero"].ToString();
                retornoDTO.descripcion = row["descripcion"].ToString();
            }

            return(retornoDTO);
        }