I have something like this
public class Person
{
public Country {get; set;}
}
public class PersonInput
{
public ImNotSureWhatShouldIUseHere Country {get; set;}
}
there is a input builder for Enums in mvc contrib but it’s not good for me because i retrieve the data from the DB and i save the Id of the selected element not the value
i managed to do a input builder of my own, it looks like this
and the property in the Input class it’s like this: