added get and post functionality to Controller but not tested