public EstadoPQRSDTO BuscarPorId(int id)
        {
            try {
                Conexion.Abrir();
                string sql = "SELECT TOP(1) * " +
                             "FROM EstadoPQRS " +
                             "WHERE EstadoPQRSId = " + id;
                SqlCommand    cmd    = new SqlCommand(sql, Conexion.Conn);
                SqlDataReader reader = cmd.ExecuteReader();

                if (reader.Read())
                {
                    EstadoPQRSDTO epqrs = new EstadoPQRSDTO(
                        Convert.ToInt32(reader["EstadoPQRSId"].ToString()),
                        reader["EstadoPQRS"].ToString()
                        );
                    return(epqrs);
                }
                else
                {
                    return(null);
                }
            } catch (SqlException e) {
                Console.WriteLine(e.StackTrace);
                return(null);
            } finally {
                if (Conexion.Conn != null)
                {
                    Conexion.Cerrar();
                }
            }
        }
 public void Ingresar(EstadoPQRSDTO obj)
 {
     throw new NotImplementedException();
 }
 public void Eliminar(EstadoPQRSDTO obj)
 {
     throw new NotImplementedException();
 }