/// <summary> /// 试卷分组添加策略 /// </summary> /// <param name="model"></param> /// <returns></returns> public static bool PaperTactic_Edit(PaperTactic model) { try { using (var conn = DbHelper.ResourceService()) { var p = new DynamicParameters(); p.Add("@PaperTacticID", model.PaperTacticID); p.Add("@PaperID", model.PaperID); p.Add("@GroupID", model.GroupID); p.Add("@Diffcult", model.Diffcult); p.Add("@ExerciseType", model.ExerciseType); p.Add("@Num", model.Num); p.Add("@ScorePer", model.ScorePer); p.Add("@KenID", model.KenID); p.Add("@ChapterID", model.ChapterID); conn.Execute("PaperTactic_Edit", p, commandType: CommandType.StoredProcedure); return(true); } } catch (Exception) { return(false); } }
public bool PaperTactic_Edit(PaperTactic model) { return(PaperDAL.PaperTactic_Edit(model)); }