code: function CrudController(model, idName) {
    // call super constructor
    BaseController.call(this);
  
    // set the model instance to work on
    this.model = model;
  
    // set id name if defined, defaults to 'id'
    if (idName) {
      this.idName = String(idName);
    }
  }
docs: Constructor function for CrudController.
  @classdesc Controller for basic CRUD operations on mongoose models.
  Uses the passed id name as the request parameter id to identify models.
  @constructor
  @inherits BaseController
  @param {Model} model - The mongoose model to operate on
  @param {String} [idName] - The name of the id request parameter to use