public ActionResult Calc2(double p_BillAmount) { TipMatrix matrix = new TipMatrix(p_BillAmount); ViewData["Matrix"] = matrix; return View("DisplayResult"); }
public ActionResult Calc() { TipMatrix matrix = new TipMatrix(Convert.ToDouble(RouteData.Values["id"])); ViewData["Matrix"] = matrix; return View("DisplayResult"); }