Пример #1
0
        public static void RegisterRoutes(RouteCollection routes)
        {
            LinkedInDBContext Context = new LinkedInDBContext();

            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            //if (Context.Members.FirstOrDefault(x=>x.email_address != "*****@*****.**") != null)
            //{
            //    routes.Ignore("Admin/index");
            //}

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Default", action = "welcome", id = UrlParameter.Optional }
                );
        }
Пример #2
0
 public DefaultController()
 {
     Context = new LinkedInDBContext();
 }
Пример #3
0
 public ConnectionController()
 {
     db = new LinkedInDBContext();
 }
Пример #4
0
 public ProfileController()
 {
     Context = new LinkedInDBContext();
 }
Пример #5
0
 public PostController()
 {
     Context = new LinkedInDBContext();
 }
Пример #6
0
 public AdminController()
 {
     Context = new LinkedInDBContext();
 }