I like Radius on Folsom Street for dinner. Fondue Cowboy is kind of fun too. Plenty of bars in the area but some might be slow on a week night.
In the Castro, 2223 Market was my standby for dinner, but it has closed. I'd be hard pressed to suggest any restaurant in the Castro, but Yelp will surely have the answers. On the other hand, the Castro bars are more likely have a larger week night crowd than those in SoMa, and if you don't like one you can quickly walk to another.