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