DocumentDB を呼び出して新しい Employee ドキュメントを作成する次のコードがあります。結果を従業員ドキュメントに再度変換するにはどうすればよいですか? 基本的には、作成したドキュメントをキャプチャして Employee オブジェクトに変換したいと考えています。
var result = await client.CreateDocumentAsync(collection.SelfLink, employee);
if(result.StatusCode == System.Net.HttpStatusCode.Created)
{
Employee emp = result.Resource; // How do I convert the result to Employee object here?
}