You are calling the controller but you are not calling ActionResult, I have my view:
@model IEnumerable<Generico.Dominio.TB_MENU>
@{
ViewBag.Title = "Index";
}
@Html.Partial("_navbarInterno")
@Html.Partial("_PartialLogin")
<div class="list-group">
<a href="#" class="list-group-item active">
Seleccione una opción
</a>
@if (Model.Count() > 0)
{
foreach (var item in Model)
{
<a href="/Operacao/Index/@item.idmenu" class="list-group-item">@Html.DisplayFor(c => item.descricaomenu)</a>
}
}
</div>
no controller:
// GET: Operacao
public ActionResult Index(int id)
{
//pega a opção selecionada para trazer as opções
int opcao = id;
return View();
}