Exemplo n.º 1
0
        public bool UpdateRoom(int oldNumber, int newNumber, string phone, string typeString)
        {
            int typeId = 0;

            foreach (var type in RoomType.RoomTypes)
            {
                if (type.Type.Equals(typeString))
                {
                    typeId = type.Id;
                }
            }

            IRoomDAO rDAO = DAOFactory.OnlyInstance.GetRoomDAO();

            return(rDAO.UpdateRoom(oldNumber, newNumber, phone, typeId));
        }
Exemplo n.º 2
0
 public Room UpdateRoom(Room room)
 {
     return(roomDAO.UpdateRoom(room));
 }