private void GetTeamFolders(ITeamFoldersModel model, IMainPresenter presenter) { IMemberServices service = service = new MemberServices(ApplicationResource.BaseUrl, ApplicationResource.ApiVersion); service.ListTeamFolderUrl = ApplicationResource.ActionListTeamFolder; service.UserAgentVersion = ApplicationResource.UserAgent; string fileAccessToken = ApplicationResource.DefaultAccessToken; IDataResponse response = service.ListTeamFolders(fileAccessToken); if (response.StatusCode == HttpStatusCode.OK) { if (response.Data != null) { string data = response.Data.ToString(); dynamic jsonData = JsonConvert.DeserializeObject<dynamic>(data); // clear existing data first model.TeamFolders.Clear(); //changed from entries to team_folders int resultCount = jsonData["team_folders"].Count; for (int i = 0; i < resultCount; i++) { dynamic team_folders = jsonData["team_folders"][i]; dynamic teamFolderName = team_folders["name"]; dynamic teamFolderId = team_folders["team_folder_id"]; dynamic status = team_folders["status"][".tag"]; // update model TeamFoldersListViewItemModel lvItem = new TeamFoldersListViewItemModel() { TeamFolderName = teamFolderName, TeamFolderId = teamFolderId, Status = status }; model.TeamFolders.Add(lvItem); } } } }