I just started using AttributeRouting with my ASP.NET MVC3 application. I started with -no controllers in general. (New empty MVC3 application)
Then I made an area. (called: Documentation)
Then I added a controller (called: DocumentationController)
Then I did it.
[RouteArea("Documentation")]
public class DocumentationController : Controller
{
[GET("Index")]
public ActionResult Index()
{
return View();
}
}
And the following route works: /documentation/index
but how can I do these two routes, work?
1 - /<- (default route / no specific route specified) 2 - /documentation<- no 'index' subroutine section added.
Can this be done with AttributeRouting ?
UPDATE:
, ASP.NET MVC3 .. , , AttributeRouting.