Exemple #1
0
        public async Task <TagDto> CreateAsync(TagCreateDto input)
        {
            var tag = await TagManager.CreateAsync(
                GuidGenerator.Create(),
                input.EntityType,
                input.Name);

            await Repository.InsertAsync(tag);

            return(ObjectMapper.Map <Tag, TagDto>(tag));
        }
Exemple #2
0
 public Task <TagDto> CreateAsync(TagCreateDto input)
 {
     return(TagAdminAppService.CreateAsync(input));
 }