Snippet of code from an admin controller