Tuesday, January 30, 2024

Linq Foreach and where caluse in asp.net

 var ProceedingsActiveList = CourtApplicationProceedingsList.Where(t => t.IsActive == true).ToList();


                ProceedingsActiveList.ForEach(p => { p.ConductingOfficerTypeName = ddlConductingProsecutor.Items.FindByValue(p.ConductingOfficerType.Value.ToString()).Text; p.LawOfficerName =  });

No comments:

Post a Comment