Purpose App_Start folder in MVC5
Hi to all,In MVC5, what is the main purpose having 3 default files given below in App_start. There are,
1.BundleConfig.cs
2.FilterConfig.cs
3.RouteConfig.cs
Regards,
Karunanidhi.K
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/MyFile.js")); // for script file
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/MyFile.css","~/Content/site.css"));// for style
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional });
routes.MapRoute(name: "MyRoute", url: "{controller}/{action}", defaults: new { controller = "Home", action = "Index"});
}