Пример #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     AppConfigurationHelper.EncryptionConnectionString(ConfigurationManager.ConnectionStrings["pdb_ccmsContext"].ConnectionString);
     // Register mapping
     UnityConfig.RegisterMapping();
     //CardHolderCreateMapper.RegisterMapping();
     // end mapping
     AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.Name;
 }