Skip to content

Instantly share code, notes, and snippets.

@JIOO-phoeNIX
Created November 6, 2020 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JIOO-phoeNIX/63bf85dd713e15685a918e45a21a3e46 to your computer and use it in GitHub Desktop.
Save JIOO-phoeNIX/63bf85dd713e15685a918e45a21a3e46 to your computer and use it in GitHub Desktop.
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