예제 #1
0
        // GET: Files/Create
        public ActionResult Create()
        {
            ViewBag.Themes         = new SelectList(CodeList.Themes(), "Key", "Value", "Annen");
            ViewBag.SymbolPackages = new MultiSelectList(_symbolService.GetPackagesWithAccessControl(), "SystemId", "Name");
            ViewBag.IsAdmin        = false;
            ViewBag.Owner          = ClaimsPrincipal.Current.GetOrganizationName();
            if (Request.IsAuthenticated)
            {
                ViewBag.IsAdmin = _authorizationService.IsAdmin();
            }

            return(View());
        }
예제 #2
0
 // GET: SymbolPackages
 public ActionResult Index()
 {
     return(View(_symbolService.GetPackagesWithAccessControl()));
 }