Added create, update to API controller