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());
 }
Beispiel #3
0
 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());
 }
Beispiel #4
0
 public IActionResult Index()
 {
     return(View(_siteSettingRepository.GetById(1)));
 }