/// <summary author="Wes Richardson" created="2019/01/24"> /// Retrieves a List of the buildings for the Resort /// <returns>List of building</returns> /// </summary> public List <string> RetrieveBuildingList() { List <string> buildingIDList = new List <string>(); try { buildingIDList = _roomAccessor.SelectBuildings(); } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } return(buildingIDList); }
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); }