Archives - February 2012

Adding an alias to an action parameter for model binding in ASP.NET MVC

This is the introduction of a new Nuget package called ActionParameterAlias . Have you ever had a URL: http://example.com?productid=123456 where you wanted to bind it with an ASP.NET MVC action like this? 1: public ActionResult Search(Product product) 2: { 3: //... 4: return View(product); 5: } .csharpcode...