public async Task DeletePostTagNodes(int postId) { var post = await _postRepository.GetSingle(postId); var notes = await _postTagRepository.GetTagsIdList(post.Id); foreach (var i in notes) { await _postTagRepository.Delete(i); } }
public async Task DeletePostTagNodes(int postId) { var post = await _postRepository.GetSingle(postId); var notes = await _postTagRepository.GetTagsIdList(post.Id); foreach (var i in notes) { await _postTagRepository.Delete(i); } }