Beispiel #1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var role              = repository.GetRoleOfCurrentUser();
            var items             = repository.GetAdminMenusOfRole(role).OrderBy(am => am.orderIndex).ToList();
            var currentController = this.httpContextAccessor.HttpContext.Request;

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