Can you please guide me how can I test my lambda expressions inside Razor view engine setting a break point?
For example, I have below code:
@(Html.DropDownList("Condition4",
new SelectList(Model
.Conditions
.Where(c =>
c.TxCondition.TxConditionTypeId == Model.ConditionTypes.Single
ct => ct.TxConditionType.ConditionTypeCode == "Region")
.TxConditionType
.TxConditionTypeId),
"TxCondition.TxConditionId",
"ConditionTitle",
Model.SearchCondition.Condition4),
"All"))
On break point I tried testing the following code using "Quick Watch Windows"
but the error was "Expression cannot contain lambda expressions"
Can you please guide me how to test lambda expressions in MVC Razor view ?
Thank you so much for your time and help.
Model.Conditions.Where(c => c.TxCondition.TxConditionTypeId == 1)