2

I am sending the following response from server :

return new OperationResult.Created { CreatedResourceUrl = getURI(newDuplicateKfEntity), ResponseResource = newDuplicateKfEntity };

My question is how can I get this CreatedResourceUrl object in my javascript??

Jon Lin
  • 142,182
  • 29
  • 220
  • 220

1 Answers1

0

Instead of OperationResult.Created return a typed DTO and use a Codec to encode it as Json. After that consuming Json in JavaScript is simple.

KlsLondon
  • 1,160
  • 1
  • 9
  • 18