Doubt Select MVC .NET

0

I am doing an index, to bring the employee and the classification that he is, however if I do so, he appears the classification id, not the name:

 @foreach (var item in Model.Funcionario)
    {
        <tr>
            <td>@item.Nome</td>
            <td>@item.ClassificacaoID</td>
            <td align="right">
                <a  asp-action="Editar" asp-route-id="@item.Id" title="Editar"><i class="fa fa-pencil fa-lg"></i></a>&nbsp;
                <a asp-action="Detalhe" asp-route-id="@item.Id" title="Visualizar"><i class="fa fa-eye fa-lg"></i></a>&nbsp;
                <a  asp-action="Excluir" asp-route-id="@item.Id"title="Excluir"><i class="fa fa-trash-o fa-lg"></i></a>&nbsp;
            </td>
        </tr>
    }

No select is like this:

     public async Task<IActionResult> Index()
    {
        var model = new IndexViewModel();
        model.Mensagem = "Carregando dados";
        model.Funcionario = await db.Funcionarios.OrderBy(f => f.Nome).ToArrayAsync();
        return View(model); 
    }

How can I bring the employee, and the description of the classification of the employee?

    
asked by anonymous 02.08.2018 / 14:50

0 answers