protected override async Task <object> OnPerform() { var response = await _restClient.ValidateQite(_cacheManager.SaleNumber, _cacheManager.TillNumberForSale, _cacheManager.ShiftNumber, _cacheManager.RegisterNumber, _bandMember); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: var qiteContract = new DeSerializer().MapValidateQite(data); return(new Mapper().MapQiteValidate(qiteContract)); default: return(await HandleExceptions(response)); } }