Made the CrudAPI class more model agnostic.