private async Task SendCurrentLocation() { var location = new Core.Models.Location.Location { Latitude = double.Parse(_settingsService.Latitude, CultureInfo.InvariantCulture), Longitude = double.Parse(_settingsService.Longitude, CultureInfo.InvariantCulture) }; var locationService = ViewModelLocator.Resolve <ILocationService>(); await locationService.UpdateUserLocation(location, _settingsService.AuthAccessToken); }
public async Task UpdateUserLocation(eShopOnContainers.Core.Models.Location.Location newLocReq, string token) { var uri = UriHelper.CombineUri(GlobalSetting.Instance.GatewayMarketingEndpoint, ApiUrlBase); await _requestProvider.PostAsync(uri, newLocReq, token); }