Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Web;
|
---|
5 | using System.Web.Mvc;
|
---|
6 |
|
---|
7 | namespace HLWebServiceTestPlugin.Controllers
|
---|
8 | {
|
---|
9 | public class ServiceTestController : Controller
|
---|
10 | {
|
---|
11 | //
|
---|
12 | // GET: /ServiceTest/
|
---|
13 |
|
---|
14 | public ActionResult Index()
|
---|
15 | {
|
---|
16 | return View();
|
---|
17 | }
|
---|
18 |
|
---|
19 | //
|
---|
20 | // GET: /ServiceTest/Details/5
|
---|
21 |
|
---|
22 | public ActionResult Details(int id)
|
---|
23 | {
|
---|
24 | return View();
|
---|
25 | }
|
---|
26 |
|
---|
27 | //
|
---|
28 | // GET: /ServiceTest/Create
|
---|
29 |
|
---|
30 | public ActionResult Create()
|
---|
31 | {
|
---|
32 | return View();
|
---|
33 | }
|
---|
34 |
|
---|
35 | //
|
---|
36 | // POST: /ServiceTest/Create
|
---|
37 |
|
---|
38 | [HttpPost]
|
---|
39 | public ActionResult Create(FormCollection collection)
|
---|
40 | {
|
---|
41 | try
|
---|
42 | {
|
---|
43 | // TODO: Add insert logic here
|
---|
44 |
|
---|
45 | return RedirectToAction("Index");
|
---|
46 | }
|
---|
47 | catch
|
---|
48 | {
|
---|
49 | return View();
|
---|
50 | }
|
---|
51 | }
|
---|
52 |
|
---|
53 | //
|
---|
54 | // GET: /ServiceTest/Edit/5
|
---|
55 |
|
---|
56 | public ActionResult Edit(int id)
|
---|
57 | {
|
---|
58 | return View();
|
---|
59 | }
|
---|
60 |
|
---|
61 | //
|
---|
62 | // POST: /ServiceTest/Edit/5
|
---|
63 |
|
---|
64 | [HttpPost]
|
---|
65 | public ActionResult Edit(int id, FormCollection collection)
|
---|
66 | {
|
---|
67 | try
|
---|
68 | {
|
---|
69 | // TODO: Add update logic here
|
---|
70 |
|
---|
71 | return RedirectToAction("Index");
|
---|
72 | }
|
---|
73 | catch
|
---|
74 | {
|
---|
75 | return View();
|
---|
76 | }
|
---|
77 | }
|
---|
78 |
|
---|
79 | //
|
---|
80 | // GET: /ServiceTest/Delete/5
|
---|
81 |
|
---|
82 | public ActionResult Delete(int id)
|
---|
83 | {
|
---|
84 | return View();
|
---|
85 | }
|
---|
86 |
|
---|
87 | //
|
---|
88 | // POST: /ServiceTest/Delete/5
|
---|
89 |
|
---|
90 | [HttpPost]
|
---|
91 | public ActionResult Delete(int id, FormCollection collection)
|
---|
92 | {
|
---|
93 | try
|
---|
94 | {
|
---|
95 | // TODO: Add delete logic here
|
---|
96 |
|
---|
97 | return RedirectToAction("Index");
|
---|
98 | }
|
---|
99 | catch
|
---|
100 | {
|
---|
101 | return View();
|
---|
102 | }
|
---|
103 | }
|
---|
104 | }
|
---|
105 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.