コード例 #1
0
 public void LayoutViewBags()
 {
     ViewBag.personal = _personalSettingRepository.GetById(1);
     ViewBag.site     = _siteSettingRepository.GetById(1);
     ViewBag.social   = _socialRepository.GetAll();
     ViewBag.category = _categoryRepository.GetAll();
 }
コード例 #2
0
 public IActionResult Index()
 {
     ViewBag.personal = _personalRepository.GetById(1);
     ViewBag.site     = _siteSettingRepository.GetById(1);
     ViewBag.social   = _socialRepository.GetAll();
     ViewBag.category = _categoryRepository.GetAll();
     return(View());
 }
コード例 #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());
 }
コード例 #4
0
 public IActionResult Index()
 {
     return(View(_siteSettingRepository.GetById(1)));
 }