public ActionResult FlooringRequest() { var model = new FlooringValues(); return View(model); }
public ActionResult FlooringDisplay(FlooringValues values) { if (ModelState.IsValid) { var result = new FlooringCalculator(values); var model = new FlooringTotals(); model.MaterialCost = result.FindCost(); return View(model); } return View("FlooringRequest", values); }
public FlooringCalculator(FlooringValues values) { _Values = values; }