I have a dynamic url processor
public ActionResult DynamicUrl(string slug = null)
this method works through the slug (btw, what does slug stand for?) and works out if the slug is displaying a product or performing a product search.
As part of the product search, I have a page=1 querystring param.
E.g. /Womens/Dresses?page=2
Usually I would do this in a normal product search action which binds the page querystring to the ProductSearch model.
public ActionResult Results(ProductSearchModel searchModel)
How can I bind the querstring during the action? For example
public ActionResult DynamicUrl(string slug = null)
{
ProductSearchModel psm = new ProductSearchModel();
//Auto bind psm here.
// E.g. Controller.BindModel(psm);
}
Hope I am not way off course on this.