public async Task <IEnumerable <Locatable> > ListByUserIdAsync(int userId)
        {
            var userIds = await _favouriteRepository.ListByUserIdAsync(userId);

            var locatables = userIds.Select(p => p.Locatable).ToList();

            return(locatables);
        }
Example #2
0
 public async Task <IEnumerable <Favourite> > ListByUserIdAsync(int userId)
 {
     return(await _favouriteRepository.ListByUserIdAsync(userId));
 }