public ActionResult LcmResult(Fractions fractions) { if (ModelState.IsValid) { var f = new LcmFinder(); fractions.CommonDenom = f.Execute(fractions.Input1, fractions.Input2); } else { return View("LcmRequest", fractions); } return View(fractions); }
public ActionResult LcmRequest() { var model = new Fractions(); return View(model); }