protected async override Task <object> OnPerform() { var response = await _fuelPumpRestClient.LoadPrices(_grouped); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: var contract = new DeSerializer().MapFuelPrices(data); var entity = new Mapper().MapFuelPrices(contract); entity.IsGrouped = _grouped; return(entity); default: return(await HandleExceptions(response)); } }