public int UpdateClassDepartmentById(BaseClassDepartmentModel model)
        {
            int result = mapContext.Update("UpdateClassDepartmentById", model);

            return(result);
        }
 public bool UpdateEntity(int id, BaseClassDepartmentModel newentity)
 {
     throw new NotImplementedException();
 }
        public int AddEntity(BaseClassDepartmentModel entity)
        {
            int id = (int)mapContext.Insert("InsertClassDepartment", entity);

            return(id);
        }