working post controller. generic repository untested though.
fix prev. commit