Beispiel #1
0
        /// <summary>
        /// 通过ID删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool Delete(int id)
        {
            var dorm = FindById(id);

            if (dorm != null)
            {
                dorm.Dorm_model_state = false;
                return(DormDb.Update(dorm));
            }
            return(false);
        }
Beispiel #2
0
 /// <summary>
 /// 更新园区信息
 /// </summary>
 /// <param name="dorm"></param>
 /// <returns></returns>
 public bool Update(Entity.T_Dorm dorm)
 {
     return(DormDb.Update(dorm));
 }