public ActionResult Divide(CalcViewModel model) { var cs = new CalcService(); var result = cs.SafeDivide(model.Number1, model.Number2); model.Result = result; return(View("Process", model)); }
public ActionResult Divide(CalcViewModel model) { var cs = new CalcService(); var result = cs.SafeDivide(model.Number1, model.Number2); model.Result = result; return(View("Process", model)); }