Guest User

Untitled

a guest
Jan 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. [ServiceContract]
  2. public interface IContactService
  3. {
  4. [OperationContract]
  5. [WebGet(UriTemplate = "")]
  6. HttpResponseMessage GetAll();
  7.  
  8. [OperationContract]
  9. [WebGet(UriTemplate = "{id}")]
  10. HttpResponseMessage Get(string id);
  11.  
  12. [OperationContract]
  13. [WebInvoke(UriTemplate = "", Method = "POST")]
  14. HttpResponseMessage Insert(Contact contact);
  15.  
  16. [OperationContract]
  17. [WebInvoke(UriTemplate = "", Method = "PUT")]
  18. HttpResponseMessage Update(Contact contact);
  19.  
  20. [OperationContract]
  21. [WebInvoke(UriTemplate = "{id}", Method = "DELETE")]
  22. HttpResponseMessage Delete(string id);
  23. }
Add Comment
Please, Sign In to add comment