Using resource for adding/deleting,updating data.