Exemplo n.º 1
0
        protected async override Task <object> OnPerform()
        {
            var response = await _fuelPumpRestClient.UpdateFuelPrice(_option, _counter);

            var data = await response.Content.ReadAsStringAsync();

            switch (response.StatusCode)
            {
            case HttpStatusCode.OK:
                var pageName = new DeSerializer().MapString(data);
                return(pageName);

            default:
                return(await HandleExceptions(response));
            }
        }