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 } ); }
public DefaultController() { Context = new LinkedInDBContext(); }
public ConnectionController() { db = new LinkedInDBContext(); }
public ProfileController() { Context = new LinkedInDBContext(); }
public PostController() { Context = new LinkedInDBContext(); }
public AdminController() { Context = new LinkedInDBContext(); }