protected override async Task <object> OnPerform() { var response = await _restClient.AffixBarcode(_cardNumber, _barCode); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: return(new DeSerializer().MapAffixBarcode(data)); default: return(await HandleExceptions(response)); } }