/// <summary> /// 提交意见征询 /// </summary> /// <param name="consult"></param> /// <returns></returns> public static string postCommit(ConsultRequest consult) { string result = string.Empty; try { result = HttpWorker.PostStr(Global.ConsultCommitApi, consult.ToJson()); } catch (Exception ex) { MessageBox.Show("提交征询意见失败,请重试。原因:" + ex.Message); } return(result); }
/// <summary> /// 提交评论 /// </summary> /// <param name="opinion"></param> /// <returns></returns> public static string postOpinion(OpinionCommitRequest opinion) { string result = string.Empty; try { //result= HttpWorker.PostJson(Global.OpinionCommitApi, opinion.ToJson()); result = HttpWorker.PostStr(Global.OpinionCommitApi, opinion.ToJson()); } catch (Exception ex) { MessageBox.Show("提交评论失败,请重试。原因:" + ex.Message); } return(result); }