public async Task <BlogStory> AssignTagToBlogStoryAsync(Guid tagId, Guid blogStoryId, CancellationToken cancel = default) { var blogStory = await _blogStoryRepository.GetWithTagsAsync(blogStoryId, cancel); if (blogStory == null) { throw new EntityNotFoundException(); } return(await AssignTagToBlogStory(tagId, blogStory, cancel)); }
public Task <BlogStory> GetWithTagsAsync(Guid id, CancellationToken cancel = default) { return(_blogStoryRepository.GetWithTagsAsync(id, cancel)); }