public static object updateStudentSubjectScore(string postString, ref string error) { Dal.MsSQL.T_StudentSubjectScore sss = Untity.HelperJson.DeserializeObject <Dal.MsSQL.T_StudentSubjectScore>(postString); object obj = Dal.MsSQL.T_StudentSubjectScore.updateStudentSubjectScore(sss).ToString(); return(obj); }
public static List <T_StudentSubjectScore> getIsexaminSubjectScore(string postString) { Dal.MsSQL.T_StudentSubjectScore sss = Untity.HelperJson.DeserializeObject <Dal.MsSQL.T_StudentSubjectScore>(postString); List <T_StudentSubjectScore> list = db.Queryable <T_StudentSubjectScore>().Where(a => a.studentticketid == sss.studentticketid && a.sortid == sss.sortid).ToList(); return(list); }
public static object addStudentSubjectScore(string postString, ref string error) { object obj = new object(); Dal.MsSQL.T_StudentSubjectScore sss = Untity.HelperJson.DeserializeObject <Dal.MsSQL.T_StudentSubjectScore>(postString); sss.id = Guid.NewGuid().ToString(); var result = Dal.MsSQL.T_StudentSubjectScore.getIsexaminSubjectScore(postString); if (result.Count() >= 1) { obj = ""; } else { obj = Dal.MsSQL.T_StudentSubjectScore.addStudentSubjectScore(sss).ToString(); } return(obj); }