When was the new York state constitution written and what are the two parts of the new York state legislature?

http://www.history.com/this-day-in-history/new-york-adopts-state-constitution

http://en.wikipedia.org/wiki/New_York_State_Legislature