public async Task<ParkingPlaceAdvertisementModel> GetNearbyMap(UserModel user, LocationModel location)
		{
			var ad = _adsService.GetAdd();
			var list = await _parkService.GetNearbyMap(user, location);

			var model = new ParkingPlaceAdvertisementModel(list, ad);

			return model;
		}
示例#2
0
		public async Task<List<ParkingPlaceModel>> GetNearbyMap(UserModel user, LocationModel location)
		{
			var list = await GetParkingPlaceList();

			if (location != null)
			{
				list = list.Where(x => LocationUtil.InRange(x.Location, location)).ToList();
			}

			return list;
		}
		public async Task ReceiveEmail(UserModel user, LocationModel location)
		{
			var model = await ParkingController.Instance.GetNearbyMap(user, location);

			SendEmail(user, model);
		}