Zbiór zmian 971 dla trunk/eCard/eCardMVC/Platnosci/Global.asax.cs
- Data:
- 2009-12-23 11:59:36 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/eCard/eCardMVC/Platnosci/Global.asax.cs (zmodyfikowane) (4 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci/Global.asax.cs
r967 r971 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.Mvc; 1 using System.Web.Mvc; 6 2 using System.Web.Routing; 7 3 using System.Threading; 8 using System.Globalization;9 using System.Configuration;10 4 11 namespace Platnosci5 namespace adMoto.Payments.Web 12 6 { 13 // Note: For instructions on enabling IIS6 or IIS7 classic mode,14 // visit http://go.microsoft.com/?LinkId=939480115 16 7 public class MvcApplication : System.Web.HttpApplication 17 8 { … … 20 11 routes.IgnoreRoute("elmah.axd"); 21 12 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 22 string lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower();13 var lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower(); 23 14 24 15 routes.MapRoute( 25 "eCard", 26 "eCard/Status.aspx", 27 new { controller = "Platnosc", action = "Status" } 28 );16 "eCard", 17 "eCard/Status.aspx", 18 new { controller = "Platnosc", action = "Status" } 19 ); 29 20 30 21 routes.MapRoute( 31 22 "ConfirmationOk", 32 23 "{language}/Platnosc/Ok/{id}/{order}/", 33 new { controller = "Platnosc", action = "Ok", id ="", order="", language="" }34 );24 new { controller = "Platnosc", action = "Ok", id = "", order = "", language = "" } 25 ); 35 26 36 27 routes.MapRoute( … … 38 29 "{language}/Platnosc/Fail/{id}/", 39 30 new { controller = "Platnosc", action = "Ok", id = "", order = "", language = "" } 40 );31 ); 41 32 42 33 routes.MapRoute( 43 "Default", 44 "{language}/{controller}/{action}/{id}", 45 new { language = lang, controller = "Home", action = "Index", id = "" } 46 );34 "Default", 35 "{language}/{controller}/{action}/{id}", 36 new { language = lang, controller = "Home", action = "Index", id = "" } 37 ); 47 38 } 48 39 protected void Application_Start() … … 50 41 RegisterRoutes(RouteTable.Routes); 51 42 } 52 43 53 44 } 54 45 }
