protected async override Task <object> OnPerform() { var contract = JsonConvert.SerializeObject(_payload); var content = new StringContent(contract, Encoding.UTF8, ApplicationJSON); var response = await _fuelPumpRestClient.AddManually(content); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: var responseContract = new DeSerializer().MapSale(data); return(new Mapper().MapSale(responseContract)); default: return(await HandleExceptions(response)); } }