Interestingly, the Hansard for June 1944 has several speeches from Honourable Members giving tribute to some of their fellow members who went ashore in Normandy, suggesting that a precedent exists for simultaneously being a Member of Parliament and in the military.
However, I'd suggest you not take advice on an internet forum. Find a decent constitutional lawyer, examine the precedents and current legislative and regulatory frameworks, and go from there.