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)); }
public Room UpdateRoom(Room room) { return(roomDAO.UpdateRoom(room)); }