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 void Delete(int id) { _postTagRepository.Delete(id); }
public IActionResult Delete(int id) { _postTagRepository.Delete(id); return(NoContent()); }
public IActionResult Delete(int tagId, int postId) { _postTagRepository.Delete(tagId, postId); return(NoContent()); }