public Station GetStationInfoWithMatrix(StationOptions stationOptions) { try { Station station = new Station(stationOptions); return station; } catch (Exception ex) { WebCommon.LogExceptionInfo(new Exception(string.Format("An error occurred while trying to load info for StationId: {0}", stationOptions.stationId), ex)); throw new Exception("An error occurred while trying to load the Station info."); } }
/// <summary>TBD</summary> /// <param name="stationOptions">TBD</param> public Station(StationOptions stationOptions) { this.StationId = stationOptions.stationId; this.Load(); this.SpotMatrix = Spot.LoadSpotMatrix(stationOptions.stationId, stationOptions.startMonth, stationOptions.startYear, stationOptions.numberOfMonths); this.SpotTypeBreakdown = DigitalAvails.SpotTypeBreakdown.LoadSpotTypeBreakdown(this.StationId, stationOptions.startMonth, stationOptions.startYear, stationOptions.numberOfMonths); this.StationSpots = StationSpot.LoadStationSpots(this.StationId); }