创建一个类库,名为BLL,代码如下


1

2

3

4

5

6

7

8

9



10

11

12



13



14

15



16

17

18

19

20

21



22

23

24



25

26

27

在项目中添加对上面这个类库的引用,
在项目中添加引用 System.ServiceModel.Web、System.Runtime.Serialization


1

2

3

4

5

6

7

8

9

10

11

12



13

14



15

16



17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44
