예제 #1
0
        public async Task <IActionResult> GetTags()
        {
            var tags = await _tagManager.GetAllTags();

            var response = _mapper.Map <IEnumerable <TagResponse> >(tags);

            return(Ok(response));
        }
예제 #2
0
 public async Task <ActionResult <IEnumerable <TagDTO> > > GetTag() => await _context.GetAllTags();