Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }