public TagDto AddTag(ArticleTagRelationDto input) { _articleTagRelationDomainService.Add(input.MapTo <ArticleTagRelationBase>()); var t = _tagDomainService.Get(input.TagId); return(Mapper.Map <TagDto>(t)); }
public IActionResult RemoveTag(ArticleTagRelationDto dto) { _articleAppService.DeleteTag(dto.ArticleId, dto.TagId); return(RedirectToAction("Index")); }