angular grud api added and implemented to controllers