public async Task <IEnumerable <Category> > ListByPlaceIdAsync(int placeId) { var placeCategory = await _placeCategoryRepository.ListByPlaceIdAsync(placeId); var categories = placeCategory.Select(pt => pt.Category).ToList(); return(categories); }
public async Task <IEnumerable <PlaceCategory> > ListByPlaceIdAsync(int placeId) { return(await _placeCategoryRepository.ListByPlaceIdAsync(placeId)); }