RoomTypeDAO rtd = new RoomTypeDAO(); //数据层 /// <summary> /// 添加房间类型 /// </summary> /// <param name="rtb"></param> /// <returns></returns> public bool AddRoomType(RoomTypeBean rtb) { if (rtd.AddRoomType(rtb) > 0) { return(true); } return(false); }
RoomTypeDAO rtd = new RoomTypeDAO(); //数据层 /// <summary> /// 添加房间类型 /// </summary> /// <param name="rtb"></param> /// <returns></returns> public bool AddRoomType(RoomTypeBean rtb) { if (rtd.AddRoomType(rtb) > 0) { return(true); } return(false); }