Both work in my controller class, so I am wondering what's the
difference and when should each one be used?