public ActionResult TopNav() { //var identity = (ClaimsPrincipal)Thread.CurrentPrincipal; //var role = identity.Claims.Where(c => c.Type == ClaimTypes.Role) // .Select(c => c.Value).SingleOrDefault(); //var navBar = new Navbar(); IEnumerable <NavbarItem> model = _rep.Get(); return(PartialView("TopNav", model)); }
public IEnumerable <NavbarItem> NavbarTop() { var navRepos = new NavbarRepository(); return(navRepos.Get()); }
public IEnumerable <NavbarItem> NavbarTop(int roleID) { var _rep = new NavbarRepository(); return(_rep.Get()); }