public ActionResult HotLabel()
        {
            var labels = _labelService.GetAllLabels(pageSize: 40);
            var model  = labels.Items.MapTo <IList <ContentLabelModel> >();

            return(PartialView(model));
        }
        public ActionResult GetCategoryLabel(int categoryId)
        {
            var key = string.Format(LABEL_BY_CATEGORY_ID_KEY, categoryId, false);

            var data = _cacheManager.GetCache(key).Get(key, () =>
            {
                var labels = _labelService.GetAllLabels(categoryId: categoryId);

                var items = labels.Items.Select(l => new
                {
                    Title = l.Name,
                    Value = l.Id
                });
                return(items);
            });

            return(AbpJson(data));
        }
        public ActionResult List(DataSourceRequest command, string Keywords)
        {
            var labels = _labelService.GetAllLabels(keywords: Keywords,
                                                    showHidden: true,
                                                    pageIndex: command.pageName - 1,
                                                    pageSize: command.limitName);

            var data = new DataSourceResult
            {
                count = labels.TotalCount,
                data  = labels.Items.Select(c => new
                {
                    Name         = c.Name,
                    Id           = c.Id,
                    DisplayOrder = c.DisplayOrder
                }).ToList(),
            };

            return(AbpJson(data));
        }