public Get_OutGetModule GetModule(string data) { Get_OutGetModule json = new Get_OutGetModule(); try { Get_InGetModule input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InGetModule>(data); DBModules db = new DBModules(); resultGetGroup r = new resultGetGroup(); bool bIsNull = true; r.Module = db.GetModule(input.ID, ref bIsNull); r.bExist = bIsNull; json.data = r; json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }
public Get_OutGetGroup GetGroup(string data) { Get_OutGetGroup json = new Get_OutGetGroup(); try { Get_InGetGroup input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InGetGroup>(data); DBGroup db = new DBGroup(); resultGetGroup r = new resultGetGroup(); bool bIsNull = true; r.Group = db.GetGroup(input.DayPlanID, input.GroupID, ref bIsNull); r.bExist = bIsNull; json.data = r; json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }