Esempio n. 1
0
        public ActionResult <IEnumerable <TagReadDto> > GetAllTags()
        {
            IEnumerable <Tag> tags = _repository.GetAllTag();

            if (tags != null)
            {
                return(Ok(_mapper.Map <IEnumerable <TagReadDto> >(tags)));
            }
            return(NotFound());
        }