Can someone help me how to filter data from business object?
Here is my sample code:
var allemps = empService.GetAllEmployees();
IEnumerable<Emp> emps;
if (allemps.IsFreeOfErrors)
{
emps = allemps.Value.Contains("abc");
}
here allemps.Value
is returning all employee data. But I want to filter emps
whose name starts with "abc". How do I do this?