public async Task MakeRequest(string postcode) { PostcodeSelected = postcode; PostcodeResponse = await CallManager.MakePostcodeRequestAsync(postcode); JsonResponse = JObject.Parse(PostcodeResponse); SinglePostcodeDTO.DeserealizeResponse(PostcodeResponse); }
public async Task MakeRequestAsync(string postcode) { //make a request PostcodeResponse = await CallManager.MakePostcodeRequestAsync(postcode, "postcode"); //parse a json response Json_Response = JObject.Parse(PostcodeResponse); //Use DTO to covert JSON string to an object SinglePostcodeDTO.DeserializeResponse(PostcodeResponse); }
public async Task MakeRequestAsync(string postcode) { PostcodeSelected = postcode; // Make request PostcodeResponse = await CallManager.MakePostcodeRequestAsync(postcode); // Parse JSON response content JSON_Response = JObject.Parse(PostcodeResponse); // Use DTO to convert JSON string to an object SinglePostcodeDTO.DeserialiseResponse(PostcodeResponse); }