Mercurial > silverbladetech
annotate SilverlightAsyncRestWcf/SilverlightAsyncRestWcf.Services/IService.cs @ 121:8f94475d3146 tip
final code
author | stevenh7776 |
---|---|
date | Thu, 31 May 2012 15:35:26 +0100 |
parents | fa4ba8943048 |
children |
rev | line source |
---|---|
118 | 1 using System.Collections.Generic; |
2 using System.ServiceModel; | |
117 | 3 |
4 namespace SilverlightAsyncRestWcf.Services | |
5 { | |
6 [ServiceContract] | |
7 interface IService<T> | |
8 { | |
9 [OperationContract] | |
118 | 10 IList<T> GetAll(); |
11 | |
12 [OperationContract] | |
13 T Get(string id); | |
117 | 14 |
15 [OperationContract] | |
16 void Insert(T entity); | |
17 | |
18 [OperationContract] | |
19 void Update(string id, T entity); | |
20 | |
21 [OperationContract] | |
22 void Delete(string id); | |
23 } | |
24 } |