protected async override Task <object> OnPerform() { var paymentByFleetContract = JsonConvert.SerializeObject(_paymentByFleetContract); var content = new StringContent(paymentByFleetContract, Encoding.UTF8, ApplicationJSON); var response = await _restClient.SaveProfilePrompt(content); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: var poNumber = new DeSerializer().MapPONumber(data); return(poNumber); default: return(await HandleExceptions(response)); } }