Updated RESTful service code for Add, Update, Delete