Beispiel #1
0
        public async Task RemoveTagFromEntityAsync(EntityTagRemoveDto input)
        {
            var definition = await _tagDefinitionStore.GetTagEntityTypeDefinitionsAsync(input.EntityType);

            await CheckPolicyAsync(definition.DeletePolicy);

            await _entityTagManager.RemoveTagFromEntityAsync(
                input.TagId,
                input.EntityType,
                input.EntityId,
                CurrentTenant?.Id);
        }
        public virtual async Task RemoveTagFromEntityAsync(EntityTagRemoveDto input)
        {
            var definition = await TagDefinitionStore.GetTagEntityTypeDefinitionAsync(input.EntityType);

            await CheckAnyOfPoliciesAsync(definition.DeletePolicies);

            await EntityTagManager.RemoveTagFromEntityAsync(
                input.TagId,
                input.EntityType,
                input.EntityId,
                CurrentTenant?.Id);
        }
Beispiel #3
0
 public Task RemoveTagFromEntityAsync(EntityTagRemoveDto input)
 {
     return(EntityTagAdminAppService.RemoveTagFromEntityAsync(input));
 }