Created
November 6, 2020 18:00
-
-
Save JIOO-phoeNIX/63bf85dd713e15685a918e45a21a3e46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Forecasting_BikeSharingDemandLib; | |
using Microsoft.AspNetCore.Mvc; | |
namespace BlazorWithML.NET.Api.Controllers | |
{ | |
[Route("api/[controller]")] | |
[ApiController] | |
public class BikeDemandForcastController : ControllerBase | |
{ | |
[HttpGet("GetEvaluateOutput/{numberOfDaysToPredict}")] | |
public IActionResult GetEvaluateOutput(int numberOfDaysToPredict) | |
{ | |
var output = BikeForcast.GetBikeForcast(numberOfDaysToPredict); | |
return Ok(output.evaluateOutput); | |
} | |
[HttpGet("GetForecastOutput/{numberOfDaysToPredict}")] | |
public IActionResult GetForecastOutput(int numberOfDaysToPredict) | |
{ | |
var output = BikeForcast.GetBikeForcast(numberOfDaysToPredict); | |
return Ok(output.forecastOutput); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment