Pokaż
Ignoruj:
Data:
2009-12-23 11:59:36 (16 years ago)
Autor:
marek
Opis:

re #215

Pliki:
1 zmodyfikowane

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; 
     1using System.Web.Mvc; 
    62using System.Web.Routing; 
    73using System.Threading; 
    8 using System.Globalization; 
    9 using System.Configuration; 
    104 
    11 namespace Platnosci 
     5namespace adMoto.Payments.Web 
    126{ 
    13     // Note: For instructions on enabling IIS6 or IIS7 classic mode,  
    14     // visit http://go.microsoft.com/?LinkId=9394801 
    15  
    167    public class MvcApplication : System.Web.HttpApplication 
    178    { 
     
    2011            routes.IgnoreRoute("elmah.axd"); 
    2112            routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 
    22             string lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower();             
     13            var lang = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower(); 
    2314 
    2415            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                ); 
    2920 
    3021            routes.MapRoute( 
    3122                "ConfirmationOk", 
    3223                "{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                ); 
    3526 
    3627            routes.MapRoute( 
     
    3829                "{language}/Platnosc/Fail/{id}/", 
    3930                new { controller = "Platnosc", action = "Ok", id = "", order = "", language = "" } 
    40             ); 
     31                ); 
    4132 
    4233            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                ); 
    4738        } 
    4839        protected void Application_Start() 
     
    5041            RegisterRoutes(RouteTable.Routes); 
    5142        } 
    52       
     43 
    5344    } 
    5445}