Add GetAction extension method.