public ControllerBase(string entityName, Func <dynamic, object> selectListItemFunc)
 {
     _repository         = new RestServiceClient(ServiceSettings.GetRestEndpointForEntity(entityName));;
     _selectListItemFunc = selectListItemFunc;
 }