Remove property in result

Hi,

I am trying to remove a property from an object I return.

Adding “[ApiMember(ExcludeInSchema = true)]” only removes it in the swagger docs, but I like to completely remove it,

Greetings
Andre

Use [IgnoreDataMember] to ignore properties from serialization + metadata.

1 Like