Moved CRUD operations from regular controller into ApiController.