コード例 #1
0
 public ExerciseInfo Exercise_Custom_M_Edit(ExerciseInfo model)
 {
     try
     {
         ExerciseDAL.Exercise_Custom_M_Edit(model);
         return(model);
     }
     catch (Exception e)
     {
         return(null);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
        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);
        }
コード例 #6
0
 public List <Exercise> Exercise_Search(Exercise model, Key key, int PageSize, int PageIndex)
 {
     return(ExerciseDAL.Exercise_Search(model, key, PageSize, PageIndex));
 }
コード例 #7
0
 public bool Exercise_Del(IExercise model)
 {
     return(ExerciseDAL.Exercise_Del(model));
 }
コード例 #8
0
 /// <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));
 }
コード例 #9
0
ファイル: ExerciseFactory.cs プロジェクト: Rens1608/Quickfit
        public static IExerciseDAL CreateExerciseDAL()
        {
            IExerciseDAL exerciseDAL = new ExerciseDAL();

            return(exerciseDAL);
        }
コード例 #10
0
 public ExerciseInfo Exercise_MultipleChoice_Get(int ExerciseID)
 {
     return(ExerciseDAL.Exercise_MultipleChoice_Get(ExerciseID));
 }
コード例 #11
0
 public ExerciseInfo Exercise_Writing_Get(int ExerciseID)
 {
     return(ExerciseDAL.Exercise_Writing_Get(ExerciseID));
 }
コード例 #12
0
 public ExerciseInfo Exercise_Judge_Get(int ExerciseID)
 {
     return(ExerciseDAL.Exercise_Judge_Get(ExerciseID));
 }
コード例 #13
0
 public bool Exercise_Scope_Upd(Exercise model)
 {
     return(ExerciseDAL.Exercise_Scope_Upd(model));
 }
コード例 #14
0
 public bool Exercise_Diffcult_Upd(Exercise model)
 {
     return(ExerciseDAL.Exercise_Diffcult_Upd(model));
 }
コード例 #15
0
ファイル: ExerciseBLL.cs プロジェクト: hsynkrcf/KelimeEzber
 public ExerciseBLL()
 {
     _exerciseDAL = new ExerciseDAL();
 }
コード例 #16
0
        public IES.Resource.Model.IExercise Exercise_Get(IExercise model)
        {
            Exercise o = model as Exercise;

            return(ExerciseDAL.Exercise_Get(model));
        }
コード例 #17
0
 public ExerciseInfo ExerciseInfo_GetListen(ExerciseInfo model)
 {
     return(ExerciseDAL.ExerciseInfo_GetListen(model));
 }
コード例 #18
0
 public bool Exercise_ShareRange_Upd(Exercise model)
 {
     return(ExerciseDAL.Exercise_ShareRange_Upd(model));
 }
コード例 #19
0
 public ExerciseInfo Exercise_Analysis_Get(int ExerciseID)
 {
     return(ExerciseDAL.Exercise_Analysis_Get(ExerciseID));
 }
コード例 #20
0
 public bool Exercise_Batch_Diffcult(string exerciseIDS, int diffcult)
 {
     return(ExerciseDAL.Exercise_Batch_Diffcult(exerciseIDS, diffcult));
 }
コード例 #21
0
 public ExerciseInfo Exercise_Custom_Get(int ExerciseID)
 {
     return(ExerciseDAL.Exercise_Custom_Get(ExerciseID));
 }
コード例 #22
0
 public bool Exercise_Batch_Del(string ids)
 {
     return(ExerciseDAL.Exercise_Batch_Del(ids));
 }
コード例 #23
0
 /// <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));
 }
コード例 #24
0
 public ExerciseController(IConfiguration _configuration)
 {
     exerciseDAL = new ExerciseDAL(_configuration);
 }