Exemplo n.º 1
0
        public async Task <IEnumerable <City> > ListByOwnerProfileIdAsync(int ownerProfileId)
        {
            var ownerLocation = await _ownerLocationRepository.ListByOwnerProfileIdAsync(ownerProfileId);

            var cities = ownerLocation.Select(ol => ol.City).ToList();

            return(cities);
        }
Exemplo n.º 2
0
 public async Task <IEnumerable <OwnerLocation> > ListByOwnerProfileIdAsync(int ownerId)
 {
     return(await _ownerLocationRepository.ListByOwnerProfileIdAsync(ownerId));
 }