asp.net mvc 4 - how I can implement default product in each category in mvc4 using routing -


How can I apply the default product to each category in mvc4 using writing?

You want to set your routes in this way:

  routes.MapRoute ( "class path", "categories / {category} / {product}", new {controller = "section", action = "Sokagri" class = "Books", product = ""});  

Then, your controller action method might look like this:

  public Controller Controller: Controller {public action results by category (string category, string product) {// the rest of the code here}}  

then you within your action String.IsNullOrEmptE (product) designed its repository to Czech And default database flag or you want to point it out.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -