Exemplo n.º 1
0
 public ActionResult <IEnumerable <Link> > GetLinks()
 {
     return(Json(_linksService.GetAll().Select(link =>
     {
         link.LinkTags = new List <LinkTags>();
         return link;
     }).ToList()));
 }
Exemplo n.º 2
0
        public async Task <IEnumerable <Link> > Get()
        {
            var clientId = GetClientId();

            return(await _linksService.GetAll(clientId));
        }