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