public IActionResult AddTagToPost(PostTag postTag) { PostTag tagCheck = _postTagRepository.CheckIfExists(postTag); if (tagCheck == null) { _postTagRepository.AddPostTag(postTag); return(Ok()); } return(Ok()); }
public IActionResult AddTagToPost(PostTag postTag) { PostTag tagCheck = _postTagRepository.CheckIfExists(postTag); if (tagCheck == null) { _postTagRepository.AddPostTag(postTag); return(Ok()); } return(Ok()); }