title: ASP.NET MVC 5 -Custom URLs with Attribute Routing and Dynamic controller and Action methods
body: <p>NET MVC 5** I want urls like this
  <a href="http://borntoprogram.com/.Net/.Net-Core/" rel="nofollow">http://borntoprogram.com/.Net/.Net-Core/</a></p>
  
  <p>I know i can achieve it using Attribute routing as shown below</p>
  
  <pre><code>[RoutePrefix(".Net")]
  [Route("{action=Index}")]
  public class NetController : Controller
  {
      [Route(".Net-Core")]
      public ActionResult NetCore()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>but i want to Generate Controllers and Actions methods dynamically. And use Attribute routing with that.
  <br>
  I want to use <strong>Dots (.) in URL</strong> ,<br> second thing i want the urls to be very simple having just 3 parts like
   <strong>DomainName/CategoryOfArticle/ArticleName</strong>
  as in the URL DomainName -BornToProgram.com , CategoryofArticle -.Net , ArticleName -.Net-Core </p>
  
  <p>IN all I WANT to allow admin to Decide parts of the URL For new articles that he can submit on monthly or daily basis.
  Like Category of Article (.Net in example)
  and Then Name of the Article( .Net-Core , .Net-Framework)
  The ADMIN want full control on the URLs </p>