// GET: Article public ActionResult Index() { var viewModel = new ArticleIndexViewModel { Articles = _articleRepository.GetAll().ToList(), ArticlePhotos = _articlePhotoRepository.GetAll().ToList(), ArticleComments = _articleCommentRepository.GetAll().ToList(), ArticleCategories = _articleCategoryRepository.GetAll().ToList() }; return(View(viewModel)); }
// GET: ArticlePhoto public ActionResult Index() { return(View(_articlePhotoRepository.GetAll())); }