Ejemplo n.º 1
0
 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.");
     }
 }
Ejemplo n.º 2
0
 /// <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);
 }