public ActionResult FooterIndex() { FooterModelView model = new FooterModelView(); model.Datasource = GetFooterSettings(); return(View("~/Areas/HackathonSite/Views/Global/Footer.cshtml", model)); }
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)); }
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)); }