Пример #1
0
        public async Task <ICollection <TagDto> > FindByTitle(string tagTitle)
        {
            if (tagTitle == null)
            {
                throw new ArgumentNullException();
            }

            var tags = await _repository.FindByTitle(tagTitle);

            var tagsDto = _mapper.Map <TagDto[]>(tags);

            return(tagsDto);
        }