コード例 #1
0
        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);

        }
コード例 #2
0
 public ActionResult LcmRequest()
 {
     var model = new Fractions();
     return View(model);
 }