addData in Controller can pass an object as well as array