I have this model
public int id { get; set; }
public string Status { get; set; }
I need the status
to have 3 possible values only {Waiting, Approved, Rejected}
I want to use a strongly typed view. So what's the best way to do it? Shall I use
<select name="Status" id="Status">
<option value="Waiting">Waiting</option>
<option value="Approved">Approved</option>
<option value="Rejected">Rejected</option>
</select>
I would like to use Enum
for status
preferably but anyway of doing it would be fine.