Path not found in my @ Html.Action

0

I have an action child, which I use to invoke a view in a layout, but when using the @ HTML.Action , it tells me that the controller that happened to it has not been found.

 <li class="dropdown">

                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bell"></i> <b class="caret"></b></a>
                        <ul class="dropdown-menu alert-dropdown">
                            @Html.Action("Not", "EntrevistaIdiomaController");
                        </ul>
                    </li>

My action result child

     [ChildActionOnly]
    public ActionResult Not()
    {
        return PartialView("_Notificacion", m_entrevistaIdiomaDAO.TodosXFecha());
    }

The error

    
asked by Sara 26.06.2017 в 20:04
source

1 answer

1

Try to do the same but without the Controller suffix, like this:

@Html.Action("Not", "EntrevistaIdioma");

Usually, when you call a controller, you're going to do it like this, the MVC setup saves you from having to call the class by full name:)

    
answered by 26.06.2017 в 20:47