public ActionResult GetSitemap() { if (Menu == null) { Menu = _SiteMap.GetSiteMap((int)SitemapType.Header); } return(Json(Menu, JsonRequestBehavior.AllowGet)); }
public ActionResult GetSitemap() { if (Menu == null) { Menu = _SiteMap.GetSiteMap(CurrentUserLogin, (int)SitemapType.Admin); } return(Json(Menu, JsonRequestBehavior.AllowGet)); }
public IActionResult Get([FromServices] ISiteMapRepository repo) { return(Ok(repo.GetSiteMap())); }