/// <summary author="Wes Richardson" created="2019/02/20"> /// Retrieves a list of Room Statuses /// </summary> /// <returns>List of Room Statuses</returns> public List <string> RetrieveRoomStatusList() { List <string> statusList = null; try { statusList = _roomAccessor.SelectRoomStatusList(); } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } return(statusList); }
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); }