示例#1
0
        public async Task <IEnumerable <Link> > GetLinks(string userId = null)
        {
            if (userId != null)
            {
                return(await _linksRepository.GetUserLinks(userId));
            }

            return(await _linksRepository.GetAllLinks());
        }