public async Task <IEnumerable <Domain.Models.Startup> > ListByUserIdAsync(int userId)
        {
            var favoriteProfiles = await favoriteStartupRepository.ListByUserIdAsync(userId);

            var startups = favoriteProfiles.Select(st => st.Startup).ToList();

            return(startups);
        }
Example #2
0
 public async Task <IEnumerable <FavoriteStartup> > ListByUserIdAsync(int userId)
 {
     return(await favoriteStartupRepository.ListByUserIdAsync(userId));
 }