root/trunk/eCard/eCardMVC/Platnosci/Global.asax.cs @ 916

Wersja 881, 1.5 KB (wprowadzona przez alina, 16 years temu)

re #215 poprawienie akcji do wyswietlenia statusu transakcji

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5using System.Web.Mvc;
6using System.Web.Routing;
7using System.Threading;
8using System.Globalization;
9using System.Configuration;
10
11namespace 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.