wcf rest starter kit 2 ICollectionService<ITem>
Posted
by krusty
on Stack Overflow
See other posts from Stack Overflow
or by krusty
Published on 2009-06-12T01:53:55Z
Indexed on
2010/03/17
18:01 UTC
Read the original article
Hit count: 507
I have created a Rest collection WCF Service using the starter kit. Everything is fine except i need to modify the OnGetItem(string id) to accept an additional parameter such that the URI becomes
http://localhost/service.svc/1/5
where 1 = department id and 5 = employee id
I can see the ICollectionService within the abstract class collection service base protected abstract TItem OnGetItem(string id); but I am not allowed to modify it.
Does anyone have any ideas has to how I can make such a simple addition?
Thanks in advance
© Stack Overflow or respective owner