1
I own a Viewdata and would like to turn it into a Radiobutton for a model
ViewData["tiposPagamento"] = dbo.TiposPagamento.Where(_=>_.Ativo);
Radio Button :
@Html.RadioButton(m=>m.TipoPagamentiID, ViewData["tiposPagamento"])
But it only takes one item , I thought to make a foreach however 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.