I have DropDownListFor in MVC view, with this line:
@Html.DropDownListFor(m => m.UserOffice, Enumerable.Empty<SelectListItem>(), new { @class = "form-control", data_ng_model = "OfficeID", data_ng_options = "I.Id as I.Name for I in OfficeList", @id = "UserOffice" })
I need to store in "m.UserOffice" the "data_ng_model" value instead Selected index.
how can I do it ?