public IEnumerable <TaskModelData> GetListDTO(List <TaskModelData> taskList, string withOutNameFile) { List <TaskModelData> listWithOutTeam = new List <TaskModelData>(); List <string> teamList = _jiraRepository.GetTeamApp(taskList.ToList().Select(o => o.appName).ToList()).ToList(); for (int x = 0; x < taskList.Count - 1; x++) { taskList[x].team = teamList[x]; } listWithOutTeam = taskList.Where(o => o.team == "" || o.team == null).ToList(); listWithOutTeam.ForEach(o => o.team = "Not Found"); _jsonService.SaveJson(withOutNameFile, listWithOutTeam); listWithOutTeam.ForEach(o => { taskList.Remove(o); }); AddNoTeamFileFilledIdExist(taskList, withOutNameFile); return(taskList); }