How to get the Display Name Attribute of an Enum member via MVC Razor code?

I’ve got a property in my model called Promotion that its type is a flag enum called UserPromotion. Members of my enum have display attributes set as follows: [Flags] public enum UserPromotion { None = 0x0, [Display(Name = “Send Job Offers By Mail”)] SendJobOffersByMail = 0x1, [Display(Name = “Send Job Offers By Sms”)] SendJobOffersBySms = … Read more