Exemplo n.º 1
0
        public ActionResult Index()
        {
            if (!exampleManager.CanAddExampleServices())
            {
                throw new HttpException(401, String.Empty);
            }

            ViewData["canAdd"]    = CheckCanAdd();
            ViewData["canEdit"]   = CheckCanEdit();
            ViewData["canDelete"] = CheckCanDelete();

            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Loader()
        {
            ViewData["ShowExamples"] = manager.CanAddExampleServices();

            return(PartialView());
        }