public async Task <ActionResult <List <TagDto> > > GetAll() { var tags = await _repository.GetAllAsync(); return(tags.Select(x => _mapper.Map <TagDto>(x)).ToList()); }
public async Task <List <string> > GetAllTagsAsync() { return(await _tagsRepository.GetAllAsync()); }