Beispiel #1
0
        public ResponseMessage Subtract(RequestMessage request)
        {
            double n1 = request.N1;
            double n2 = request.N2;
            double result = n1 - n2;

            ResponseMessage response = new ResponseMessage();
            response.Result = result;
            return response;
        }
Beispiel #2
0
        public ResponseMessage Divide(RequestMessage request)
        {
            double n1 = request.N1;
            double n2 = request.N2;
            double result = n1/n2;

            ResponseMessage response = new ResponseMessage();
            response.Result = result;
            return response;
        }
Beispiel #3
0
        public ResponseMessage Multiply(RequestMessage request)
        {
            double n1 = request.N1;
            double n2 = request.N2;
            double result = n1*n2;

            ResponseMessage response = new ResponseMessage();
            response.Result = result;
            return response;
        }