Need Clarification on Custom Action filter in ASP.NET MVC

While creating Custom action filter in MVC, Either we need to implement IActionFilter interface or inherit ActionFilter base class and override the necessary methods.

Now the question is, which one is best way to create and what is the difference between these two?