public ActionResult ImagesList(DataSourceRequest command, ConfigurationGalleryImagesListModel model)
        {
            var galleries = _galleryService.GetAllGalleryImages(model.SearchGalleryName,
                                                                command.Page - 1, command.PageSize, true);
            var data = new List <ConfigurationGalleryImagesModel>();

            foreach (var item in galleries)
            {
                data.Add(new ConfigurationGalleryImagesModel
                {
                    Name         = item.Name,
                    DisplayOrder = item.DisplayOrder,
                    Id           = item.Id
                });
            }
            var gridModel = new DataSourceResult
            {
                Data  = data,
                Total = galleries.TotalCount
            };

            return(new JsonResult
            {
                Data = gridModel
            });
        }