public async Task <IActionResult> BlogList(BlogForListDto blogForListDto)
        {
            await InitializeModel();

            model.EntriesPaging = await _entryRepo.PagingBlogList(blogForListDto);

            model.Location = "YAZILARIMIZ";
            ViewBag.Blog   = "class = active";
            var location = new Uri($"{Request.Scheme}://{Request.Host}{Request.Path}{Request.QueryString}");
            var url      = location.AbsoluteUri;

            ViewBag.MetaTags = _metaTagService.CreateMetas("Yazılarımız | Mizgin Doğan Hukuk", desc
                                                           , string.Join(",", keywords), owner, owner, 2019, model.AllImages.ElementAt(1).Url, url, model.AllImages.ElementAt(16).Url,
                                                           siteName, model.AllImages.ElementAt(16).Name);
            return(View(model));
        }
        public async Task <IPagedList <TEntry> > PagingBlogList(BlogForListDto blogForListDto)
        {
            int no      = blogForListDto.page ?? 1;
            int size    = blogForListDto.pageSize ?? 4;
            var entries = await EntriesAll();

            if (!String.IsNullOrEmpty(blogForListDto.searchString))
            {
                blogForListDto.searchString = blogForListDto.searchString.ToLower();
                entries = entries.Where(s => s.Header.ToLower().Contains(blogForListDto.searchString) ||
                                        s.Tags.ToLower().Contains(blogForListDto.searchString) ||
                                        s.Category.ToLower().Contains(blogForListDto.searchString)).ToList();
            }
            var entriesPaging = entries.ToPagedList(size, no);

            return(entriesPaging);
        }