Moved "add item" function to Web API