/// <summary> /// Intialize /// </summary> public EntityController() { _settings = _entitySettingsHandler(); var modelSettings = _settings.ModelFor <T>(); _viewSettings = modelSettings == null ? new ModelSettings().View : modelSettings.View; _helper = new EntityHelper <T>(_settings, typeof(T).Name); _modelname = this.GetType().Name.Replace("Controller", ""); EntityViewHelper.CheckAndDefaultSettings(modelSettings); Init(); }
private void Init() { Permissions = new ModelPermissionSettings(); View = new ModelViewSettings(); IO = new ModelImportSettings(); }