public void LayoutViewBags() { ViewBag.personal = _personalSettingRepository.GetById(1); ViewBag.site = _siteSettingRepository.GetById(1); ViewBag.social = _socialRepository.GetAll(); ViewBag.category = _categoryRepository.GetAll(); }
public IActionResult Index() { ViewBag.personal = _personalRepository.GetById(1); ViewBag.site = _siteSettingRepository.GetById(1); ViewBag.social = _socialRepository.GetAll(); ViewBag.category = _categoryRepository.GetAll(); return(View()); }
public IActionResult Index() { ViewBag.social = _socialRepository.GetAll(); ViewBag.ability = _abilityRepository.GetAll(); ViewBag.project = _projectRepository.GetAll().Where(i => i.Status == true); ViewBag.post = _postRepository.GetAll().Take(4); ViewBag.personal = _personalSettingRepository.GetById(1); ViewBag.site = _siteSettingRepository.GetById(1); ViewBag.coverImage = _imageRepository.GetAll().Where(i => i.IsCoverImage == true); return(View()); }
public IActionResult Index() { return(View(_personalSettingRepository.GetById(1))); }