/// <summary> /// User list for Site Settings. /// </summary> /// <param name="request">The request.</param> /// <returns>User list view.</returns> public ActionResult Index(SearchableGridOptions request) { request.SetDefaultPaging(); var model = GetCommand <GetUsersCommand>().ExecuteCommand(request); return(View(model)); }
public ActionResult SubscribersList(SearchableGridOptions request) { request.SetDefaultPaging(); var model = GetCommand <GetSubscriberListCommand>().ExecuteCommand(request); return(WireJson(model != null, model)); }
/// <summary> /// Renders a templates list for the site settings dialog. /// </summary> /// <returns>Rendered templates list.</returns> public ActionResult Templates(SearchableGridOptions request) { request.SetDefaultPaging(); var model = GetCommand <GetSiteSettingsTemplatesCommand>().ExecuteCommand(request); return(View(model)); }
/// <summary> /// Renders a redirects list for the site settings dialog. /// </summary> /// <param name="request">The request.</param> /// <returns> /// Rendered redirects list. /// </returns> public ActionResult Redirects(SearchableGridOptions request) { request.SetDefaultPaging(); var model = GetCommand <GetRedirectsListCommand>().ExecuteCommand(request); return(View(model)); }
/// <summary> /// Lists the template. /// </summary> /// <returns>Json result.</returns> public ActionResult ListTemplate() { var view = RenderView("Partial/ListTemplate", null); var request = new SearchableGridOptions(); request.SetDefaultPaging(); var authors = GetCommand <GetAuthorListCommand>().ExecuteCommand(request); return(ComboWireJson(authors != null, view, authors, JsonRequestBehavior.AllowGet)); }
public ActionResult ListTemplate() { var view = RenderView("List", null); var request = new SearchableGridOptions(); request.SetDefaultPaging(); var subscribers = GetCommand <GetSubscriberListCommand>().ExecuteCommand(request); return(ComboWireJson(subscribers != null, view, subscribers, JsonRequestBehavior.AllowGet)); }
public ActionResult WidgetUsages(string widgetId, SearchableGridOptions options) { options.SetDefaultPaging(); var request = new GetWidgetUsagesCommandRequest { Options = options, WidgetId = widgetId.ToGuidOrDefault() }; var model = GetCommand <GetWidgetUsagesCommand>().ExecuteCommand(request); var view = RenderView("Partial/WidgetUsagesTemplate", null); return(ComboWireJson(model != null, view, model, JsonRequestBehavior.AllowGet)); }
public ActionResult Widgets(SearchableGridOptions request) { request.SetDefaultPaging(); var model = GetCommand <GetSiteSettingsWidgetsCommand>().ExecuteCommand(request); // TODO: add servercontrolwidgetvalidation command and check if server controls exists in the server. /*if (model.ValidationMessages != null && model.ValidationMessages.Count > 0) * { * Messages.AddWarn(model.ValidationMessages.ToArray()); * } */ return(View(model)); }