public IActionResult GetById(int postTagId) { var postTag = _postTagRepo.GetPostTagById(postTagId); if (postTag == null) { return(NotFound()); } return(Ok(postTag)); }
public IActionResult GetPostTagById(int id) { var postTags = _postTagRepository.GetPostTagById(id); return(Ok(postTags)); }