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; }
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; }
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; }