public IEnumerable <TicketTeam> getTeamsByAgent(TicketAgent instance) { if (instance.Status == "INACTIVE") { return(agentRepo.getTeamByAgent(instance)); } else { return(null); } }