Moved repeated CRUD code to BaseController