I'm trying to follow an example, but I think it was written for an older version so I am looking for the umbraco 7 equivalent to this:
List<PropertyType> types = PropertyType.GetAll().ToList();
Umbraco.Core.Models.PropertyType' does not contain a definition for 'GetAll' - this is the current error I am getting.