public ActionResult TSection(TSectionViewModel viewModel) { var resultViewModel = this.performCalculations <TSectionViewModel>(viewModel); ViewBag.HasResult = true; return(View(resultViewModel)); }
public ActionResult TSection() { ViewBag.ShowResults = false; ViewBag.InputErrors = false; var viewModel = new TSectionViewModel { WebThickness = "0.2", FlangeThickness = "0.2", FlangeWidth = "1", Height = "2" }; ViewBag.HasResult = false; return(View(viewModel)); }