public List <Agent> AllAgent() { var allAgents = agentRepo.All(); var allAssign = assignRepo.All(); foreach (var a in allAgents) { a.Assignments = allAssign.Where(assign => assign.Identifier == a.Identifier).ToList(); } return(allAgents.ToList()); }
public List <Assignment> All() { return(_assignmentRepository.All()); }