public enum OwnershipType
{
Buying,
Owns,
Renting,
[AS400Value("Other")]
Boards,
[Display(Name = "Live with Relative"), AS400Value("Other")]
LiveWithRelative,
Other
}
EDIT sscreen where I select the value in teh dropdown
<div class="form-group">
<label asp-for="OwnershipType" style="float:left;margin-right:5px;"></label>
<div class="input-group col-md-6">
<select class="form-control" asp-for="OwnershipType"
asp-items="@Html.GetEnumSelectList<Ucfs.LoanPortal.Data.Entities.OwnershipType>
()" data-bind="value :ownershipType">
<option>Select</option>
</select>
<span asp-validation-for="OwnershipType"></span>
</div>
</div>
THIS IS THE DISPLAY CODE : AND RIGHT NOW IF I SELECT BUYING : IT RETURNS 0 INSTEAD OF "BUYING"
<div class="col-md-6">
<div class="form-row">
<label class="col-md-5 col-form-label" asp-for="OwnershipType">Type Of Housing</label>
<div class="col-md">
<span class="form-control-plaintext" data-bind="text: ownershipType"></span>
</div>
</div>
</div>
PLEASE HELP ME