Пример #1
0
 public JsonResult addLanguagePeiXun(JiaJiModels.Language_PeiXun infor)
 {
     try
     {
         var i = new JiaJiBLL.LanguageBLL().addLanguagePeiXun(infor);
         if (i > 0)
         {
             return(Json(new { Success = true, Message = "添加成功" }));
         }
         else
         {
             return(Json(new { Success = false, Message = "添加失败" }));
         }
     }
     catch
     {
         return(Json(new { Success = false, Message = "添加失败" }));
     }
 }
Пример #2
0
        public JsonResult editLanguagePeiXun(JiaJiModels.Language_PeiXun model)
        {
            try
            {
                int id = model.LanguagePx_ID;

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