Sorry for being a bit vague here, we have an API and different endpoints have different value pairs in an enum. The enum values are know and are fixed but the class doesnt get populated with values until runtime, and each endpoint have different values for the enum. The enum has the same name as its used across several enpoints.
I need to get the enum value from its Id thats passed in through the API. Is there a pattern for this?