|
Wersja 964, 486 bytes
(wprowadzona przez marek, 16 years temu)
|
|
re #215 - custom error page
|
| Rev | Line | |
|---|
| [964] | 1 | using System;
|
|---|
| 2 | using System.Web.Mvc;
|
|---|
| [866] | 3 |
|
|---|
| 4 | namespace Platnosci.Controllers
|
|---|
| 5 | {
|
|---|
| 6 | [HandleError]
|
|---|
| 7 | public class HomeController : Controller
|
|---|
| 8 | {
|
|---|
| 9 | public ActionResult Index(string id, string flaga)
|
|---|
| 10 | {
|
|---|
| 11 | return RedirectToAction("LogOn", "Account");
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | public ActionResult About()
|
|---|
| 15 | {
|
|---|
| 16 | return View();
|
|---|
| 17 | }
|
|---|
| [964] | 18 |
|
|---|
| 19 | public ActionResult Error()
|
|---|
| 20 | {
|
|---|
| 21 | return View("Error");
|
|---|
| 22 | }
|
|---|
| [866] | 23 | }
|
|---|
| 24 | }
|
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.