<commit_before>using Microsoft.AspNetCore.Mvc;

namespace CmsEngine.Ui.Controllers
{
    public class BlogController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }
    }
}<commit_msg>Loaded content into ViewModel<commit_after>using System.Collections.Generic;
using AutoMapper;
using CmsEngine.Data.AccessLayer;
using CmsEngine.Data.Models;
using CmsEngine.Data.ViewModels;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;

namespace CmsEngine.Ui.Controllers
{
    public class BlogController : BaseController
    {
        public BlogController(IUnitOfWork uow, IMapper mapper, IHttpContextAccessor hca, UserManager<ApplicationUser> userManager)
                       : base(uow, mapper, hca, userManager)
        {
        }

        public IActionResult Index()
        {
            var blogViewModel = new BlogViewModel
            {
                PagedPosts = (IEnumerable<PostViewModel>)service.GetAllPostsReadOnly(4),
                LatestPosts = (IEnumerable<PostViewModel>)service.GetAllPostsReadOnly(3),
                Pages = (IEnumerable<PageViewModel>)service.GetAllPagesReadOnly(),
                Categories = (IEnumerable<CategoryViewModel>)service.GetAllCategoriesReadOnly(),
                Tags = (IEnumerable<TagViewModel>)service.GetAllTagsReadOnly()
            };

            return View(blogViewModel);
        }
    }
}
{'fraction_non_alphanumeric': 0.08356164383561644, 'fraction_numerical': 0.0013698630136986301, 'mean_word_length': 2.824607329842932, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2967170', 'n_tokens_mistral': 390, 'n_tokens_neox': 381, 'n_words': 70}