示例#1
0
        public async Task <ActionResult <bool> > RemoveSiteTag([FromRoute] int id)
        {
            SiteTagEntity tagEntity = new SiteTagEntity()
            {
                id = id
            };

            return(Ok(await _siteTagService.RemoveSiteTagById(tagEntity)));
        }
示例#2
0
        public async Task <ActionResult <bool> > SaveSiteTag(SiteTagEntity param)
        {
            param.createDate = DateTime.Now;
            param.isShow     = true;
            param.like       = 0;
            param.title      = System.Web.HttpUtility.HtmlEncode(param.title);
            var flag = await _siteTagService.AddEntityAsync(param);

            return(Ok(flag));
        }