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 <IActionResult> Index() { await InitializeModel(); model.EntriesRecent = await _entryRepo.EntriesAllEntriesRecent(6); ViewBag.Home = "class = active"; var location = new Uri($"{Request.Scheme}://{Request.Host}{Request.Path}{Request.QueryString}"); var url = location.AbsoluteUri; ViewBag.MetaTags = _metaTagService.CreateMetas("Anasayfa | Mizgin Doğan Hukuk", desc , string.Join(",", keywords), author, author, 2019, model.AllImages.ElementAt(1).Url, url, model.AllImages.ElementAt(16).Url, siteName, model.AllImages.ElementAt(16).Name); return(View(model)); }