public void SetValue(object target, object value) { var permision = PermissionHandler.GeneralAccessChainValidation( Request: this.IRequest, Type: this.PropertyType, ModelAction: this.ModelAction, RequestMethod: this.RequestMethod, RelationType: this.Relation, ModelItself: target, TypeValue: value); if (!(permision is bool && (bool)permision)) { throw new Exception(permision as string); } else { ValueProvider.SetValue(target, value); } }