title: ASP.Net Core 2 multiple Controllers
body: <p>I created a ASP.Net Core 2.0 with One controller, no problem.
  Then I added another Controller, then this Exception appears:</p>
  
  <blockquote>
    <p>InvalidOperationException: The following errors occurred with
    attribute routing information:</p>
    
    <p>Error 1: Attribute routes with the same name 'Get' must have the same
    template: Action: 'Patrimonio.Controllers.CategoriaController.Getcc
    (Patrimonio)' - Template: 'api/Categoria/{id}' Action:
    'Patrimonio.Controllers.PatrimonioController.Getac (Patrimonio)' -
    Template: 'api/Patrimonio/{id}'
    Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorBuilder.Build(ApplicationModel
    application)</p>
  </blockquote>
  
  <p>the first Controller has <br></p>
  
  <pre><code> // GET: api/Categoria
   [Route("api/Categoria")]
   public class CategoriaController : Controller
   ...
   [HttpGet]
   public IEnumerable&lt;string&gt; Geta()
   {
       return new string[] { "value1", "value2" };
   }
  </code></pre>
  
  <p>the second has<br></p>
  
  <pre><code> // GET: api/Patrimonio/5
   [Route("api/Patrimonio")]
   public class PatrimonioController : Controller
   ...
   [HttpGet("{id}", Name = "Get")]
   public string Getac(string id)
   {
       return "value" + id;
   }
  </code></pre>
  
  <p>Even with the <strong>Getac</strong> and <strong>Getcc</strong>,  ASP.Net Core complains about same name '<strong>Get</strong>' .</p>
  
  <p>How to solve this?</p>