I have collection variable which has multiple rows
PolicyCollections policyCollections = GetPagedPolicySummary(1, searchCriteria, sort);
This method populates policyCollections with multiple rows.
I need to find a specific row out of the collection .
policydetailsModel.CurrentPolicy = policyCollections.rows.FirstOrDefault();
so instead of FirstOrDefault() I need to find a specific row based upon the parameters passed in my defination
Defination looks like
public ActionResult Details(string policyNumber, string masterCompany, string policyModule)
so I need to find a row that has a matching policyNumber, masterCompany and policyModule.