Set resource on controller actions