public void OnNavigatedTo(NavigationParameters parameters) { if (parameters["filter"] is bool param) { if (param == true) { using (HttpClient client = new HttpClient()) { var content = new StringContent(JsonConvert.SerializeObject(new string[] { "firstName:Dawn", "middleName:Dawnesko", "lastName:Dawnich" }), UnicodeEncoding.UTF8, "application/json"); var resp = client.PostAsync($"{App.MobileServiceUrl}/api/register/{App.Token}", content).Result; } subscribeService.AddSubscribedFilter(); Update(); } } }