Urgent HELP...dog not eating food since 1 and a half day after vaccination

So, i have a 1 year old 5 months shihtzu. He has always been very energetic and playful and has never gotten sick. He has done some vomits in the past due to extra food and those things. just about 2 days ago we went to the vet to get his annual vaccine. just after coming back to the house he was very dull...i though this will go away with 1 or 2 hours. After 2 hours, i gave him curd which he ate...But since then he has not eaten anything, has diarrhea and has got about 2 vomits without eating anything.....I dont know what to do, if you dog has experienced this kind of things in the past please share with me and any advice will be appreciated