I have a ViewData and would like to make it a RadioButton for a model
ViewData["tiposPagamento"] = dbo.TiposPagamento.Where(_=>_.Ativo);
Radio Button:
@Html.RadioButton(m=>m.TipoPagamentiID, ViewData["tiposPagamento"])
But just get an item, I thought about doing a foreach but as it is a viewData would have to do a cast. And I would like to know how to select the one chosen by the user.