BLL.Inscripcciones.Buscar C# (CSharp) Метод

Buscar() публичный Метод

public Buscar ( string Id ) : bool
Id string
Результат bool
        public bool Buscar(string Id)
        {
            bool mensaje = false;
            DataTable dt = new DataTable();
            dt = conexion.BuscarDb("Select * from Inscripciones where IdInscripcion = " + Id);

            if (dt.Rows.Count > 0)
            {
                mensaje = true;
                this.Fecha = (DateTime)dt.Rows[0]["Fecha"];
                this.IdProfesor= (int)dt.Rows[0]["IdProfesor"];
                this.IdSemestre = (int)dt.Rows[0]["IdSemestre"];
                this.IdAsignatura = (int)dt.Rows[0]["IdAsignatura"];
                this.IdSeccion = (int)dt.Rows[0]["IdSeccion"];

            }
            return mensaje;
        }
    }