public IActionResult Predict(HeartData input) { var model = new MLModel(); model.Build(); var result = model.Consume(input); ViewBag.HeartPrediction = result; return(View()); }