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;
		}
        public void SendEmail(UserModel user, ParkingPlaceAdvertisementModel model)
        {
            var json = JsonConvert.SerializeObject(model);

            var client = new SmtpClient
            {
                Port = 587,
                Host = "smtp.gmail.com",
                EnableSsl = true,
                Timeout = 10000,
                DeliveryMethod = SmtpDeliveryMethod.Network,
                UseDefaultCredentials = false,
                Credentials = new System.Net.NetworkCredential("*****@*****.**", "chestita2016")
            };

            var mm = new MailMessage("*****@*****.**", user.Email, "Available parking spots", json)
            {
                BodyEncoding = Encoding.UTF8,
                DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
            };

            client.Send(mm);
        }
		private void SendEmail(UserModel user, ParkingPlaceAdvertisementModel model)
		{
			_emailService.SendEmail(user, model);
		}