public ActionResult List(DataSourceRequest command, ConfigurationGalleryListModel model) { var galleries = _galleryService.GetAllGalleries(model.SearchGalleryName, command.Page - 1, command.PageSize, true); var data = new List <ConfigurationGalleryModel>(); foreach (var item in galleries) { data.Add(new ConfigurationGalleryModel { Name = item.Name, DisplayOrder = item.DisplayOrder, Id = item.Id }); } var gridModel = new DataSourceResult { Data = data, Total = galleries.TotalCount }; return(Json(gridModel)); }
public ActionResult List() { var model = new ConfigurationGalleryListModel(); return(View("~/Plugins/Widgets.Gallery/Views/GalleryConfigure/List.cshtml", model)); }