Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/ServiceTestController.cs @ 5756

Last change on this file since 5756 was 5756, checked in by cfleisch, 13 years ago

Test Query Plugin added #1439

File size: 2.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5using System.Web.Mvc;
6
7namespace 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.