public ActionResult ManageContent() { var templateViews = Directory.GetFiles(Server.MapPath("~/Areas/Admin/Views/Shared/Partials/StockPageTemplates")); var model = new ManageContentViewModel(templateViews); return View(model); }
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); }
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); }
public ActionResult ManageContent() { var model = new ManageContentViewModel(); return View(model); }