public async Task <bool> SubmitMatches(SaveMatchesRequest request) { RestUrl = ApiUrl + "match/SaveMatch"; var serilizedUserSettings = Preferences.Get("UserSettings", ""); var userSettings = JsonConvert.DeserializeObject <UserSettings>(serilizedUserSettings); request.Email = userSettings.Email; var httpRequestMessage = GetRequest(RestUrl, request, HttpMethod.Post); var response = await Client.SendAsync(httpRequestMessage); if (!response.IsSuccessStatusCode) { Console.WriteLine(response.ReasonPhrase); return(false); } else { Console.WriteLine("added match"); return(true); } }