コード例 #1
0
        public ActionResult FooterIndex()
        {
            FooterModelView model = new FooterModelView();

            model.Datasource = GetFooterSettings();
            return(View("~/Areas/HackathonSite/Views/Global/Footer.cshtml", model));
        }
コード例 #2
0
        public ActionResult Footer()
        {
            FooterModelView model = new FooterModelView()
            {
                scelti   = getScelti(),
                chisiamo = CommonHelper.getConf("about_short_it", "about_short_en", currentCulture),
                social   = db.sy_social.ToList(),
                azienda  = CommonHelper.getConf("azienda", "azienda", currentCulture)
            };

            return(PartialView("~/Views/Navigation/_Footer.cshtml", model));
        }
コード例 #3
0
ファイル: Footer.cs プロジェクト: nakinnubis/OrderMaker
        public async Task <IViewComponentResult> InvokeAsync(string idForm, int pageCount)
        {
            var user = await _userManager.GetUserAsync(HttpContext.User);

            int       pageSize = 10;
            int       page     = 1;
            MtdFilter filter   = await _context.MtdFilter.FirstOrDefaultAsync(x => x.IdUser == user.Id && x.MtdForm == idForm);

            if (filter != null)
            {
                page = filter.Page; pageSize = filter.PageSize;
            }

            FooterModelView model = new FooterModelView {
                IdForm = idForm, Page = page, PageSize = pageSize, PageCount = pageCount
            };

            return(View("Default", model));
        }