Changed code of controllers to accept DataRepository in constructor.