public ExerciseInfo Exercise_Custom_M_Edit(ExerciseInfo model) { try { ExerciseDAL.Exercise_Custom_M_Edit(model); return(model); } catch (Exception e) { return(null); } }
public ExerciseInfo Exercise_Analysis_M_Edit(ExerciseInfo model) { try { ExerciseDAL.Exercise_Analysis_M_Edit(model); ExerciseDAL.Exercise_Analysis_S_Edit(model); return(model); } catch (Exception e) { return(null); } }
public ExerciseInfo Exercise_MultipleChoice_M_Edit(ExerciseInfo model) { try { ExerciseDAL.Exercise_MultipleChoice_M_Edit(model); ExerciseDAL.Exercise_MultipleChoice_S_Edit(model); return(model); } catch (Exception e) { return(null); } }
public ExerciseInfo Exercise_Judge_M_Edit(ExerciseInfo model) { try { ExerciseDAL.Exercise_Judge_M_Edit(model); if (model.exercisecommon.exercise.ExerciseType != 1) { ExerciseDAL.Exercise_MultipleChoice_S_Edit(model); } return(model); } catch (Exception e) { return(null); } }
public bool Exercise_ADD(IExercise model) { if (model is ExerciseAnswercardInfo) { } if (model is ExerciseCompInfo) { } if (model is ExerciseCommon) { ExerciseDAL.ExerciseCommon_ADD(model as ExerciseCommon); } if (model is ExerciseInfo) { ExerciseDAL.ExerciseInfo_ADD(model as ExerciseInfo); } return(true); }
public List <Exercise> Exercise_Search(Exercise model, Key key, int PageSize, int PageIndex) { return(ExerciseDAL.Exercise_Search(model, key, PageSize, PageIndex)); }
public bool Exercise_Del(IExercise model) { return(ExerciseDAL.Exercise_Del(model)); }
/// <summary> /// 习题批量设置共享范围 /// </summary> /// <param name="list"></param> /// <param name="sharerange"></param> /// <returns></returns> public bool Exercise_Batch_ShareRange(string ids, int sharerange) { return(ExerciseDAL.Exercise_Batch_ShareRange(ids, sharerange)); }
public static IExerciseDAL CreateExerciseDAL() { IExerciseDAL exerciseDAL = new ExerciseDAL(); return(exerciseDAL); }
public ExerciseInfo Exercise_MultipleChoice_Get(int ExerciseID) { return(ExerciseDAL.Exercise_MultipleChoice_Get(ExerciseID)); }
public ExerciseInfo Exercise_Writing_Get(int ExerciseID) { return(ExerciseDAL.Exercise_Writing_Get(ExerciseID)); }
public ExerciseInfo Exercise_Judge_Get(int ExerciseID) { return(ExerciseDAL.Exercise_Judge_Get(ExerciseID)); }
public bool Exercise_Scope_Upd(Exercise model) { return(ExerciseDAL.Exercise_Scope_Upd(model)); }
public bool Exercise_Diffcult_Upd(Exercise model) { return(ExerciseDAL.Exercise_Diffcult_Upd(model)); }
public ExerciseBLL() { _exerciseDAL = new ExerciseDAL(); }
public IES.Resource.Model.IExercise Exercise_Get(IExercise model) { Exercise o = model as Exercise; return(ExerciseDAL.Exercise_Get(model)); }
public ExerciseInfo ExerciseInfo_GetListen(ExerciseInfo model) { return(ExerciseDAL.ExerciseInfo_GetListen(model)); }
public bool Exercise_ShareRange_Upd(Exercise model) { return(ExerciseDAL.Exercise_ShareRange_Upd(model)); }
public ExerciseInfo Exercise_Analysis_Get(int ExerciseID) { return(ExerciseDAL.Exercise_Analysis_Get(ExerciseID)); }
public bool Exercise_Batch_Diffcult(string exerciseIDS, int diffcult) { return(ExerciseDAL.Exercise_Batch_Diffcult(exerciseIDS, diffcult)); }
public ExerciseInfo Exercise_Custom_Get(int ExerciseID) { return(ExerciseDAL.Exercise_Custom_Get(ExerciseID)); }
public bool Exercise_Batch_Del(string ids) { return(ExerciseDAL.Exercise_Batch_Del(ids)); }
/// <summary> /// /// </summary> /// <param name="list"></param> /// <param name="scope"></param> /// <returns></returns> public bool Exercise_Batch_Scope(List <IExercise> list, int scope) { return(ExerciseDAL.Exercise_Batch_Scope(list, scope)); }
public ExerciseController(IConfiguration _configuration) { exerciseDAL = new ExerciseDAL(_configuration); }