Good evening, I'm trying to popular varis radiobutton according to the value contained in my database, but I'm not able to do it.
Here is the view with the radiobutton
@model GuialetoLMS.Models.GuialetoModel
@foreach (var choice in Model.Vestibular)
{
@Html.RadioButton("answer", @choice.idVestibular ) @choice.NomeVestibular
}
And my controller
public ActionResult PaginaQuestao()
{
return View(db.Vestibular.ToList());
}