/// <summary author="Wes Richardson" created="2019/01/24"> /// Retrieves a List of the Room Types the Hotel Has /// <returns>List of room types</returns> /// </summary> public List <string> RetrieveRoomTypeList() { List <string> roomTypeIDList = new List <string>(); try { roomTypeIDList = _roomAccessor.SelectRoomTypes(); } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } return(roomTypeIDList); }
public static bool VerifyRoom(Room room, IRoomAccessor roomAccessor) { _roomAccessor = roomAccessor; roomToCheck = room; try { buildingsList = _roomAccessor.SelectBuildings(); roomTypesList = _roomAccessor.SelectRoomTypes(); statusIDList = _roomAccessor.SelectRoomStatusList(); } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } CheckBuilding(); CheckRoomType(); CheckDescription(); CheckCapacity(); CheckPrice(); CheckRoomStatusID(); return(roomIsGood); }