Example #1
0
        protected async override Task <object> OnPerform()
        {
            var response = await _restClient.VerifyMultiPO(_purchaseOrder);

            var data = await response.Content.ReadAsStringAsync();

            switch (response.StatusCode)
            {
            case HttpStatusCode.OK:
                var succcess = new DeSerializer().MapSuccess(data);
                return(new Mapper().MapSuccess(succcess));

            default:
                return(await HandleExceptions(response));
            }
        }