Пример #1
0
        public TagDto AddTag(ArticleTagRelationDto input)
        {
            _articleTagRelationDomainService.Add(input.MapTo <ArticleTagRelationBase>());
            var t = _tagDomainService.Get(input.TagId);

            return(Mapper.Map <TagDto>(t));
        }
Пример #2
0
        public IActionResult RemoveTag(ArticleTagRelationDto dto)

        {
            _articleAppService.DeleteTag(dto.ArticleId, dto.TagId);
            return(RedirectToAction("Index"));
        }