c# - Apply filter to business object -
can me how filter data business object?
here sample code:
var allemps = empservice.getallemployees(); ienumerable<emp> emps; if (allemps.isfreeoferrors) { emps = allemps.value.contains("abc"); }
here allemps.value
returning employee data. want filter emps
name starts "abc". how do this?
here linq object examples
var allemps = empservice.getallemployees(); ienumerable<emp> emps; if (allemps.isfreeoferrors) { emps = allemp.where(w=>w.value.startwith("abc")); }