I query the database using linq.
I would like to filter the ID_LEAD column by the value of the filter "if there is an int (filter.code) or filter all over the world.
Follow the example of how the procedure is in the bank
WHERE ---- @ID_LEAD ----
LE.ID_LEAD = ISNULL(@ID_LEAD,ID_LEAD)
I would like to do this in my query
var lead = (from l in this.DB.BGC_LEAD
where l.ID_LEAD == ).ToList();