protected override async Task <object> OnPerform() { var response = await _restClient.OverLimitDetails( _cacheManager.SaleNumber, _cacheManager.TillNumberForSale); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: var overlimitDetails = new DeSerializer().MapOverLimitDetails(data); return(new Mapper().MapOverLimitDetails(overlimitDetails)); default: return(await HandleExceptions(response)); } }