Contents tagged with MVC4

  • Using abstract classes as controller parameters in ASP.NET MVC4

    As a part of the API for our product, we have the need to allow the UI to send us a parcel of data, and we need to process it differently based solely on a single parameter in the data.  We have decided to create an abstract model class to handle this, but MVC's DefaultModelBinder doesn't work out of the box on abstract classes (or interfaces).  There are many discussions out there on this, and the accepted way to solve this problem is to create a new ModelBinder class that has more …

    Read More...
  • 1