// GET: navbar public ActionResult get() { var model = new NavBarModel(); model.Brand = "魔兽数据中文站"; model.SubItems = GenerateSubItems(HttpContext); return(View(model)); }
public ActionResult Index(PageData currentPage) { var model = new NavBarModel() { Links = _linkService.FetchNavbarLinks(currentPage), IsAuthenticated = User.Identity.IsAuthenticated, AuthenticatedAs = User.Identity.IsAuthenticated ? User.Identity.Name : null }; return(View("~/Views/Shared/_navbar.cshtml", model)); }