    using ViewModels.Images;

    public class HomeController : BaseController
    {
        private IRepository<CategoryPictures> categories;

        public HomeController(IRepository<CategoryPictures> categories)
        {
            this.categories = categories;
        }

        public ActionResult Index()
        {
            IEnumerable<CategoryPictureViewModel> categoriesVM = this.categories