Example #1
0
        public void DeleteAgent(Agent agent)
        {
            var assignments = assignRepo.FindAssignmentsById(agent.Identifier);

            if (assignments != null)
            {
                assignRepo.DeleteAllAssign(agent.Identifier);
            }
            agentRepo.Delete(agent);
        }