public JsonResult getEducation(int page, int rows)
        {
            var list   = new JiaJiBLL.EducetionBll().ShowEducation();
            var result = new { total = list.Count, rows = list.Skip((page - 1) * rows).Take(rows) };

            return(Json(result));
        }
        /// <summary>
        /// 删除学历
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public int deleteEducation(string ids)
        {
            bool isOK = new JiaJiBLL.EducetionBll().DelEducation(ids);

            if (isOK)
            {
                return(0);
            }
            else
            {
                return(1);
            }
        }
 public JsonResult addEducation(JiaJiModels.educationtype model)
 {
     try
     {
         var i = new JiaJiBLL.EducetionBll().AddEducation(model);
         if (i > 0)
         {
             return(Json(new { Success = true, Message = "添加成功" }));
         }
         else
         {
             return(Json(new { Success = false, Message = "添加失败" }));
         }
     }
     catch
     {
         return(Json(new { Success = false, Message = "添加失败" }));
     }
 }
        public JsonResult editEducation(JiaJiModels.educationtype model)
        {
            try
            {
                int id = model.EducationID;

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