Update Postcontroller to consolidate create and edit