コード例 #1
0
        public ActionResult ManageContent()
        {
            var templateViews = Directory.GetFiles(Server.MapPath("~/Areas/Admin/Views/Shared/Partials/StockPageTemplates"));

            var model = new ManageContentViewModel(templateViews);
            return View(model);
        }
コード例 #2
0
        public ActionResult ManageEntity(string heading, string buttonText, string editHeading, int schemaId, string sort = "")
        {
            var model = new ManageContentViewModel(schemaId)
            {
                Heading = heading,
                NewButtonText = buttonText,
                EditContentHeading = editHeading,
                UseTemplateSelector = false,
                Sort = sort,
            };

            return View("ManageContent", model);
        }
コード例 #3
0
        public ActionResult ManageEntity(string heading, string buttonText, string editHeading, int schemaId)
        {
            var model = new ManageContentViewModel(schemaId)
            {
                Heading = heading,
                NewButtonText = buttonText,
                EditContentHeading = editHeading
            };

            return View("ManageContent", model);
        }
コード例 #4
0
 public ActionResult ManageContent()
 {
     var model = new ManageContentViewModel();
     return View(model);
 }