Exemplo n.º 1
0
        public async Task <IActionResult> Get(int id)
        {
            var tag = await _tagsService.GetById(id);

            if (tag == null)
            {
                return(NotFound());
            }

            return(Ok(tag));
        }
Exemplo n.º 2
0
 public TagDTO GetTag([FromRoute] string label)
 {
     return(_service.GetById(label));
 }