コード例 #1
0
 public ActionResult FlooringRequest()
 {
     var model = new FlooringValues();
     return View(model);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public FlooringCalculator(FlooringValues values)
 {
     _Values = values;
 }