Exemplo n.º 1
0
        protected async override Task <object> OnPerform()
        {
            var response = await _fuelPumpRestClient.LoadGrade(_pumpId, _switchPrepay, _tillNumber);

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

            switch (response.StatusCode)
            {
            case HttpStatusCode.OK:
                return(new DeSerializer().MapGrades(data));

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