private static bool httpSuccess(Burden burden, ExchangeResponseGenericBase resp) { var httpResp = resp.HttpResponse; if (!httpResp.IsSuccessStatusCode) { taskResult(burden, false, httpResp.ErrorMessage()); } return(httpResp.IsSuccessStatusCode); }
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); }