Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetAsync(int id)
        {
            var result = await _tagsService.GetAsync(id);

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

            return(Ok(result));
        }
Ejemplo n.º 2
0
 public async Task <IActionResult> Get(Guid id)
 => Single(await _tagsService.GetAsync(id));