Example #1
0
        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());
        }
Example #2
0
 public List <Assignment> All()
 {
     return(_assignmentRepository.All());
 }