public async Task CreateAsync(CreateUpdateTagDto createTag)
        {
            bool exist = await _tagRepository.Select.AnyAsync(r => r.TagName == createTag.TagName);

            if (exist)
            {
                throw new LinCmsException($"标签[{createTag.TagName}]已存在");
            }

            Tag tag = Mapper.Map <Tag>(createTag);
            await _tagRepository.InsertAsync(tag);
        }
        public async Task UpdateAsync(Guid id, CreateUpdateTagDto updateTag)
        {
            Tag tag = await _tagRepository.Select.Where(r => r.Id == id).ToOneAsync();

            if (tag == null)
            {
                throw new LinCmsException("该数据不存在");
            }

            bool exist = await _tagRepository.Select.AnyAsync(r => r.TagName == updateTag.TagName && r.Id != id);

            if (exist)
            {
                throw new LinCmsException($"标签[{updateTag.TagName}]已存在");
            }

            Mapper.Map(updateTag, tag);
            await _tagRepository.UpdateAsync(tag);
        }