0
我正在使用.Net 4.0和MVC4創建REST服務,並且我想爲方法響應中的其他資源提供原子鏈接。在REST服務中添加Atom鏈接
所以反應應該是這樣的:
<Customers xmlns:atom="http://www.w3.org/2005/Atom">
<atom:link rel="self" href="/customers"/>
<Customer>
<atom:link rel="self" href="/customers/101"/>
<Id>101</Id>
</Customer>
</Customers>
我想知道我們如何才能增加原子鏈接?
感謝