Beispiel #1
0
        public bool SaveSchoolLevel(Bas_SchoolLevel model)
        {
            bool result = false;

            if (model.Bhl_Id > 0)
            {
                result = SchoolLevelRepository.Update(model);
            }
            else
            {
                result = SchoolLevelRepository.Insert(model) > 0;
            }
            return(result);
        }
Beispiel #2
0
 /// <summary>
 /// 插入学校等级
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int InsertSchoolLevel(Bas_SchoolLevel model)
 {
     return(SchoolLevelRepository.Insert(model));
 }