I have following two controllers: HomeController and DocGenController. The HomeController is the default controller in my project. I would like to open with a button-click a function in my DocGenController. For example: I created on my page a top-navigation. I used this code to open the DocGen.cshtml- page (via the controller HomeController): @Html.ActionLink("Generator", "DocGen", "Home").
Ok, now I tried this: @Html.ActionLink("Add Value", "AddValue", "DocGen", new { @class = "btn btn-primary" }) but I get every time this Error: The resource (/Home/AddValue) can be not found (Error: 404) .
Why he try to open /Home/AddValue ?!
How can I use my DocGenController?
Thanks for your help