In my query string, I have an age variable ?age=New_Born.
?age=New_Born
Is there a way I can check if this string value New_Born is in my Enum list
New_Born
I've got a handy extension method that uses TryParse, as IsDefined is case-sensitive.
public static bool IsParsable(this string value) where T : struct { return Enum.TryParse(value, true, out _); }