protected async override Task <object> OnPerform() { var verifyContract = JsonConvert.SerializeObject(_verifyByAccountContract); var content = new StringContent(verifyContract, Encoding.UTF8, ApplicationJSON); var response = await _restClient.VerifyByAccount(content); var data = await response.Content.ReadAsStringAsync(); switch (response.StatusCode) { case HttpStatusCode.OK: var verifyByAccount = new DeSerializer().VerifyByAccount(data); return(new Mapper().VerifyByAccount(verifyByAccount)); default: return(await HandleExceptions(response)); } }