public async Task <IActionResult> Get(int id) { var tag = await _tagsService.GetById(id); if (tag == null) { return(NotFound()); } return(Ok(tag)); }
public TagDTO GetTag([FromRoute] string label) { return(_service.GetById(label)); }