public IActionResult Index(string result)
{
TempData["Output"]=result;
return View();
}
[HttpGet]
public async Task<IActionResult> GetModel1(int x, int y, int z)
{
//need basic verification for non-integers
var httpClient = new HttpClient();
var url = $"http://localhost:8080/model1?x={x}&y={y}&z={z}";
var response= await httpClient.GetAsync(url);
var result= await response.Content.ReadAsStringAsync();
return Index(result);
}
public IActionResult Index(string result)
{
TempData["Output"]=result;
return View();
}
[HttpGet]
public async Task<IActionResult> GetModel1(int x, int y, int z)
{
//need basic verification for non-integers
var httpClient = new HttpClient();
var url = $"http://localhost:8080/model1?x={x}&y={y}&z={z}";
var response= await httpClient.GetAsync(url);
var result= await response.Content.ReadAsStringAsync();
return Index(result);
}