Beispiel #1
0
 public JsonResult addMaxScoStu(JiaJiModels.LearnerModel infor)
 {
     try
     {
         infor.LearnImage = "/image/" + infor.LearnImage;
         var i = new JiaJiBLL.LearnerBll().addMaxScoStu(infor);
         if (i > 0)
         {
             return(Json(new { Success = true, Message = "添加成功" }));
         }
         else
         {
             return(Json(new { Success = false, Message = "添加失败" }));
         }
     }
     catch
     {
         return(Json(new { Success = false, Message = "添加失败" }));
     }
 }
Beispiel #2
0
        public JsonResult editMaxScoStu(JiaJiModels.LearnerModel model)
        {
            try
            {
                int id = model.LearnSorceID;

                var i = new JiaJiBLL.LearnerBll().UpdateMaxScoStu(model);
                if (i > 0)
                {
                    return(Json(new { Success = true, Message = "修改成功" }));
                }
                else
                {
                    return(Json(new { Success = false, Message = "修改失败" }));
                }
            }
            catch
            {
                return(Json(new { Success = false, Message = "修改失败" }));
            }
        }