Quote:
@Html.DropDownListFor(m => m.HiddenText, Model.Nature, "-Please Select-")
Your drop-down list is posting to the
HiddenText
field. It should presumably be posting to the
NatureOfLeave
field instead:
@Html.DropDownListFor(m => m.NatureOfLeave, Model.Nature, "-Please Select-")
Also, your model seems to be confusing the list of options with the selected option:
[Required(ErrorMessage = "Type of Leave field is required")]
[Display(Name = "Type of Leave")]
public string NatureOfLeave { get; set; }
public List<SelectListItem> Nature { get; set; }