Ejemplo n.º 1
0
        /// <summary>
        /// 根据标签ID获取标签信息
        /// </summary>
        public string GetTagsInfoById()
        {
            var        service = new TagsBLL(CurrentUserInfo);
            TagsEntity tags    = new TagsEntity();
            string     content = string.Empty;

            string key = string.Empty;

            if (Request("TagsID") != null && Request("TagsID") != string.Empty)
            {
                key = Request("TagsID").ToString().Trim();
            }

            tags = service.GetByID(key);

            var jsonData = new JsonData();

            jsonData.totalCount = tags == null ? "0" : "1";
            jsonData.data       = tags;

            content = jsonData.ToJSON();
            return(content);
        }