Maybe depends on what you mean by work. It's not like the time they spend in session is a major part of their workload. Most of their time in any State is spent meeting with important (rich) people collecting money and discussing ideas on appropriate legislative action. Then they get together with other legislators and negotiate what gets to the top of the agenda. The last step is going to their House of business and voting stuff in. That part doesn't take much time at all. Pass the bills that matter to their donors, and fill in with a bit of political grandstanding to make it look real for the masses.
Well here our legislators make $41,000 TOTAL for a two year term. So when not in session most of them return to normal jobs so they don't starve.