1
Answer

creating a list based on a list method?

shosho shosho

shosho shosho

9y
371
1
I have a list method:
 
public List<Employee> GetDiscipline(int projectId,List<int> roles)
{
return (from i in EmployeeList where i.ProjectId == projectId&& roles.Contains(i.RoleId) select i).ToList<Employee>();
}

 My question is how can i create another list based on the results of this list?
any help would be greatly appreciated and thank you in advance :)
Answers (1)