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);
            }
        }
Пример #2
0
 public void Delete(int id)
 {
     _postTagRepository.Delete(id);
 }
 public IActionResult Delete(int id)
 {
     _postTagRepository.Delete(id);
     return(NoContent());
 }
Пример #4
0
 public IActionResult Delete(int tagId, int postId)
 {
     _postTagRepository.Delete(tagId, postId);
     return(NoContent());
 }