S
shapper
Hi,
I was checking the new ASP.NET MVC Preview 4 features and I found the
following:
var dataTokens = new RouteValueDictionary();
dataTokens.Add("namespaces", new HashSet<string>(
new string[] {
"MyApp.Blog.Controllers",
"MyApp.Forum.Controllers",
"MyApp.Controllers"
}));
routes.Add(
new Route("ns/{controller}/{action}/{id}", new MvcRouteHandler()) {
Defaults = new RouteValueDictionary(new {
action = "Index",
id = (string)null
}),
DataTokens = dataTokens
});
Does this it mean that I can differentiate two distinct parts of my
application such as the web site itself and the CMS.
For example I could have:
Site/Home/Contacts
and
CMS/Documents/List
And can I have the view in two different folders?
For example:
-Views
-----Site
---------Contacts
---------Document
--------------List
-----CMS
---------Document
--------------List
--------------New
-----Shared
As you can see Document List View is different in the web site and in
the CMS.
Can I organize my views in such a way?
Thanks,
Miguel
I was checking the new ASP.NET MVC Preview 4 features and I found the
following:
var dataTokens = new RouteValueDictionary();
dataTokens.Add("namespaces", new HashSet<string>(
new string[] {
"MyApp.Blog.Controllers",
"MyApp.Forum.Controllers",
"MyApp.Controllers"
}));
routes.Add(
new Route("ns/{controller}/{action}/{id}", new MvcRouteHandler()) {
Defaults = new RouteValueDictionary(new {
action = "Index",
id = (string)null
}),
DataTokens = dataTokens
});
Does this it mean that I can differentiate two distinct parts of my
application such as the web site itself and the CMS.
For example I could have:
Site/Home/Contacts
and
CMS/Documents/List
And can I have the view in two different folders?
For example:
-Views
-----Site
---------Contacts
---------Document
--------------List
-----CMS
---------Document
--------------List
--------------New
-----Shared
As you can see Document List View is different in the web site and in
the CMS.
Can I organize my views in such a way?
Thanks,
Miguel