title: How to set the controller's name in MVC attribute routing?
body: <p><strong>Description</strong></p>
  
  <hr/>
  
  <p>I am using <em>only</em> Attribute Routing in one of my MVC Controllers:</p>
  
  <pre><code>[RoutPrefix("Groups")] // NOTE: I want to use "Groups" with an "s" here.
  public class GroupController : Controller 
  {
      [HttpGet]
      [Route("Edit/{id}")]
      public ActionResult Edit(Guid id)
      {
          //...
      }
  
      [HttpPost]
      [Route("Edit")]
      public ActionResult Edit(GroupEditViewModel model) 
      {
          // ...
      }
  }
  </code></pre>
  
  <p>In the Razor view, whenever using helpers such as:</p>
  
  <pre><code>@Html.ActionLink("Text", "Edit", new {controller = "Groups", id = "someId"})
  </code></pre>
  
  <p>or</p>
  
  <pre><code>@Html.BeginForm(actionName: "Edit", controllerName: "Groups")
  {
  }
  </code></pre>
  
  <p>The routes generated by the helper function are <code>null</code>:</p>
  
  <pre><code>&lt;a href&gt;Text&lt;/a&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;form action&gt;&lt;/form&gt;
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <hr/>
  
  <ul>
  <li>Is this happenning because the controller's name is unknown maybe?</li>
  <li>Is there a way I can set the name of the controller with using <em>Only Attribute Routing</em> ?</li>
  </ul>