BaseModel & BaseController logic