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
Post a Comment