예제 #1
0
        public ActionResult MultOption(CalcModel Model)
        {
            var         result  = new CalcResultModel();
            CalcService Service = new CalcService();

            result.result = Service.Multiply(Model);
            return(Ok(result));
        }
예제 #2
0
        public ActionResult DivOption(CalcModel Model)
        {
            var         result  = new CalcResultModel();
            CalcService Service = new CalcService();

            result.result = Service.Divide(Model);
            return(Ok(result));
        }
예제 #3
0
        public ActionResult SubOption(CalcModel Model)
        {
            var         result  = new CalcResultModel();
            CalcService Service = new CalcService();

            result.result = Service.Subtract(Model);
            return(Ok(result));
        }