コード例 #1
0
 public IEnumerable <PredictionDto> GetPredictionsHistory()
 {
     return(_predictionRepository.GetAll().Select(predictionHistory => new PredictionDto
     {
         PredictedValue = predictionHistory.PredictedValue,
         PredictionTime = predictionHistory.PredictionTime
     }));
 }
コード例 #2
0
 // GET: Predictions
 public async Task <IActionResult> Index()
 {
     return(View(await _predictionsRepository.GetAll()));
 }