public async Task <PointOfInterestDto> Get(int cityId, int id) { var pointOfInterest = await _repository.Get(cityId, id); var dto = _mapper.Map <PointOfInterestDto>(pointOfInterest); return(dto); }
public async Task <ICollection <PointOfInterestEntity> > GetAsync() { return(await _repository.Get().ConfigureAwait(false)); }