title: Is it possible to add a Route to a View in MVC
body: <p>I am a bit new to all of this.</p>
  
  <p>I know you can specify a route for an API Controller in MVC.</p>
  
  <p>What I would like to do is specify a route to a View.</p>
  
  <p>So, my View is called <code>ImageUploader</code> and is saved under the Folder called <code>Service</code></p>
  
  <p>This is my controller:</p>
  
  <pre><code>[Route("Sync")]
  public ActionResult ImageUploader()
  {
      return View();
  }
  </code></pre>
  
  <p>When I type in the browser:</p>
  
  <pre><code>http://My _Domain/Sync
  </code></pre>
  
  <p>it returns </p>
  
  <blockquote>
    <p>resource not found.</p>
  </blockquote>
  
  <p>So, I thought I would put </p>
  
  <pre><code>[Route("")]
  public class ServiceController : Controller
  </code></pre>
  
  <p>on top of my class controller but this gave me the same error.</p>
  
  <p>Can I do this easily with Route tags?</p>
  
  <p>Here is the content of my <code>RouteConfig</code>:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");      
      routes.MapRoute(
          name: "Default",
          url: "{controller}/{action}/{id}",
          defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
      );
      routes.MapMvcAttributeRoutes();        
  }
  </code></pre>