public IActionResult GetById(int postTagId)
        {
            var postTag = _postTagRepo.GetPostTagById(postTagId);

            if (postTag == null)
            {
                return(NotFound());
            }
            return(Ok(postTag));
        }
コード例 #2
0
        public IActionResult GetPostTagById(int id)
        {
            var postTags = _postTagRepository.GetPostTagById(id);

            return(Ok(postTags));
        }