Esempio n. 1
0
        //
        // GET: /Base/

        public ActionResult Index()
        {
            var controller     = ControllerContext.Controller;
            var controllerType = controller.GetType();

            if (controllerType != null && !string.IsNullOrEmpty(controllerType.Name))
            {
                ViewBag.AutoHtml = ControllerActionCollector.GetControllerNames(controllerType.Name);
            }

            return(View());
        }
Esempio n. 2
0
 public ActionResult Index()
 {
     ViewBag.AutoHtml = ControllerActionCollector.GetControllerNames();
     return(View());
 }
Esempio n. 3
0
        //
        // GET: /Knockout/

        public ActionResult ShoppingCart()
        {
            ViewBag.AutoHtml = ControllerActionCollector.GetControllerNames();
            return(View());
        }