public async Task <ActionResult <IEnumerable <Link> > > GetLinks()
        {
            var links = await _repo.GetLinksAsync();

            return(Ok(links));
        }
Exemple #2
0
        public async Task <ActionResult <IEnumerable <Link> > > GetLinks()
        {
            var links = await _linksRepo.GetLinksAsync();

            return(Ok(_mapper.Map <IEnumerable <LinkDto> >(links)));
        }