protected override async Task <object> OnPerform() { var response = await _restClient.UpdateTender( _cacheManager.SaleNumber, _cacheManager.TillNumberForSale, _code, _amount, _transactionType, _isAmountEnteredManually); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: var tendersSummary = new DeSerializer().MapTenderSummary(data); return(new Mapper().MapTenderSummary(tendersSummary)); default: return(await HandleExceptions(response)); } }