Example #1
0
        private static bool httpSuccess(Burden burden, ExchangeResponseGenericBase resp)
        {
            var httpResp = resp.HttpResponse;

            if (!httpResp.IsSuccessStatusCode)
            {
                taskResult(burden, false, httpResp.ErrorMessage());
            }

            return(httpResp.IsSuccessStatusCode);
        }
Example #2
0
        private bool httpSuccess(ExchangeResponseGenericBase resp, Button btn)
        {
            var httpResp = resp.HttpResponse;

            if (!httpResp.IsSuccessStatusCode)
            {
                MessageBox.Show(
                    httpResp.ContentBody,
                    "Error - " + httpResp.StatusCode);
            }

            btn.Enabled = true;
            return(httpResp.IsSuccessStatusCode);
        }