public IActionResult Explorer(int id = 0)
        {
            var explorer = new ResourceExplorerModel()
            {
                ResourceID   = id,
                ResourceName = typeof(TUser).Name.ToLower()
            };

            ViewData["ResourceName"] = "Users";

            return(View(explorer));
        }
示例#2
0
        public virtual IActionResult Explorer(int id = 0, string name = "", string facets = "")
        {
            if (!User.IsAuthorized(ResourceType))
            {
                return(Unauthorized());
            }

            var explorer = new ResourceExplorerModel()
            {
                ResourceID   = id,
                ResourceName = ResourceName,
                Facets       = facets
            };

            var resourceName = (name.HasValue()) ? name : ResourceName;

            ViewData["ResourceName"] = resourceName;

            return(View(explorer));
        }