Call a model function from controller