Ejemplo n.º 1
0
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var tag = await _tagServices.GetTag(id.Value);

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

            return(View(tag));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Get(int id)
        {
            var model = await _tagServices.GetTag(id);

            return(Ok(model));
        }