public NearestPartnerInformationModel(int branchKey, CoordinateModel location) { _branchKey = branchKey; _location = location; }
private async Task<IEnumerable<NearestPartnerInformationModel>> GetNearestPartnerInformation(CoordinateModel location) { var mappedNearestPartnerInformation = new List<NearestPartnerInformationModel>(); var nearestPartnerInformation = await _getParkingAvailabilityService.GetParkingAvailability(location.Latitude, location.Longitude); foreach (var nearestPartner in nearestPartnerInformation) { mappedNearestPartnerInformation.Add(AutoMapper.Mapper.Map<NearestPartnerInformation, NearestPartnerInformationModel>(nearestPartner)); } return mappedNearestPartnerInformation; }