Both of these sentences are correct grammatically, but they sound very unnatural to native speakers. It would be more normal, in everyday modern English, for us to put the preposition at the end of the phrase:
Whose house did you have dinner in yesterday?
Whose house are you in?