if (rol == 1) { @Html.ActionLink("Личный кабинет", "MainPanel", "Admin", new {@class="polosaSleva"}) } There are 2 Teacher and Admin controllers. In one of the methods of the first controller, I create a link to the representation of the second. (Code on top). As a result, a link is created to the Teacher controller's MainPanel view and not the Admin. I can not understand what the problem is.
