public ActionResult MultOption(CalcModel Model) { var result = new CalcResultModel(); CalcService Service = new CalcService(); result.result = Service.Multiply(Model); return(Ok(result)); }
public ActionResult DivOption(CalcModel Model) { var result = new CalcResultModel(); CalcService Service = new CalcService(); result.result = Service.Divide(Model); return(Ok(result)); }
public ActionResult SubOption(CalcModel Model) { var result = new CalcResultModel(); CalcService Service = new CalcService(); result.result = Service.Subtract(Model); return(Ok(result)); }