Implementing generic controllers in ASP.NET MVC and WebAPI – Part 2: binding to derived classes

In the first post of this series I covered the customisation of default MVC framework behaviour that needs to be done to reuse controllers for the Competition website. Apart from MVC controllers we need to have ApiControllers, as most of the front-end functionality in the website implemented in React.JS. And again, most of the basic functionality … Continue reading Implementing generic controllers in ASP.NET MVC and WebAPI – Part 2: binding to derived classes

Implementing generic controllers in ASP.NET MVC and WebAPI – Part 1: Attribute-based routing with inheritance

Once in a while Mountain Warehouse runs competition campaigns like Britain's Best Post-walk Pint or Lights, Camera, Backpack. Most of the time the principle is the same – users submit entries on the website (usually a picture with some description and basic info about themselves), then people vote and a winner is selected (sometimes it … Continue reading Implementing generic controllers in ASP.NET MVC and WebAPI – Part 1: Attribute-based routing with inheritance