BLL.InscripcionesDetalle.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 IncripcionesDetalle where Id = " + Id);
            if (dt.Rows.Count > 0)
            {
                mensaje = true;
                
                this.IdDetalle = (int)dt.Rows[0]["Id"];
                this.IdInscripcion = (int)dt.Rows[0]["IdInscripcion"];
                this.IdEstudiante = (int)dt.Rows[0]["IdEstudiante"];
  
            }
            return mensaje;
        }