public InterfaceResult SubmitOutRoom(string input) { input = HttpUtility.UrlDecode(input); InterfaceResult jsonModel = new InterfaceResult(); try { SubmitInOutRoom paramModel = Newtonsoft.Json.JsonConvert.DeserializeObject <SubmitInOutRoom>(input); DBSiteLogic dbSiteLogic = new DBSiteLogic(); dbSiteLogic.SubmitOutRoom(paramModel); jsonModel.result = 0; jsonModel.resultStr = "返回成功"; } catch (Exception ex) { TF.CommonUtility.LogClass.logex(ex, ""); jsonModel.result = 1; if (ex.InnerException != null) { jsonModel.resultStr = "提交离寓事件失败:" + ex.InnerException.Message.ToString(); } else { jsonModel.resultStr = "提交离寓事件失败:" + ex.Message.ToString(); } } return(jsonModel); }
public InterfaceResult SubmitDrinkRec(string input) { input = HttpUtility.UrlDecode(input); InterfaceResult jsonModel = new InterfaceResult(); try { SubmitDrinkRec paramModel = Newtonsoft.Json.JsonConvert.DeserializeObject <SubmitDrinkRec>(input); DBSiteLogic dbSiteLogic = new DBSiteLogic(); dbSiteLogic.SubmitDrinkRecord(paramModel); jsonModel.result = 0; jsonModel.resultStr = "返回成功"; } catch (Exception ex) { TF.CommonUtility.LogClass.logex(ex, ""); jsonModel.result = 1; jsonModel.resultStr = "提交测酒事件失败" + ex.InnerException.Message.ToString(); } return(jsonModel); }