|
Wersja 881, 1.5 KB
(wprowadzona przez alina, 16 years temu)
|
|
re #215 poprawienie akcji do wyswietlenia statusu transakcji
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.Linq;
|
|---|
| 4 | using System.Web;
|
|---|
| 5 | using System.Web.Mvc;
|
|---|
| 6 | using System.Web.Routing;
|
|---|
| 7 | using System.Threading;
|
|---|
| 8 | using System.Globalization;
|
|---|
| 9 | using System.Configuration;
|
|---|
| 10 |
|
|---|
| 11 | namespace Platnosci
|
|---|
| 12 | {
|
|---|
| 13 | // Note: For instructions on enabling IIS6 or IIS7 classic mode,
|
|---|
| 14 | // visit http://go.microsoft.com/?LinkId=9394801
|
|---|
| 15 |
|
|---|
| 16 | public class MvcApplication : System.Web.HttpApplication
|
|---|
| 17 | {
|
|---|
| 18 | public static void RegisterRoutes(RouteCollection routes)
|
|---|
| 19 | {
|
|---|
| 20 | routes.IgnoreRoute("elmah.axd");
|
|---|
| 21 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|---|
| 22 | string lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower();
|
|---|
| 23 |
|
|---|
| 24 | routes.MapRoute(
|
|---|
| 25 | "eCard",
|
|---|
| 26 | "eCard/Status.aspx",
|
|---|
| 27 | new { controller = "Platnosc", action = "Status" }
|
|---|
| 28 | );
|
|---|
| 29 | routes.MapRoute(
|
|---|
| 30 | "Default",
|
|---|
| 31 | "{language}/{controller}/{action}/{id}",
|
|---|
| 32 | new { language = lang, controller = "Home", action = "Index", id = "" }
|
|---|
| 33 | );
|
|---|
| 34 | }
|
|---|
| 35 | protected void Application_Start()
|
|---|
| 36 | {
|
|---|
| 37 | RegisterRoutes(RouteTable.Routes);
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | }
|
|---|
| 41 | } |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.