DataServiceBasePostResourceT Method
Creates a resource.
Namespace: Common.Core.ClassesAssembly: Common.Core (in Common.Core.dll) Version: 2.1.5
public T PostResource<T>(
string uri,
T obj,
JsonSerializerOptions? options = null
)
where T : class
- uri String
- Uniform Resource Identifier.
- obj T
- Resource to create.
- options JsonSerializerOptions (Optional)
- Json serializer options.
- T
- Generic class or interface.
TThe created resource, or
if there were errors while processing the JSON.