public IEnumerator GetEnumerator() { if (!_loadedModel.ContainsKey("articles")) { var blogPostFilter = new BlogPostFilter { Page = 1, Limit = 10, BlogId = blogModel.Id }; var articles = blogService.Filter(blogPostFilter); var articlesModel = Mapper.Map <List <ArticleModel> >(articles); _loadedModel.Add("articles", articlesModel); return(articlesModel.GetEnumerator()); } return(((List <ProductModel>)_loadedModel["articles"]).GetEnumerator()); }