using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Web; //using System.Web.Mvc; using System.Web.Routing; public class RouteConfig { /* * # Resolve Home for each Area * http://stackoverflow.com/questions/7842293/multiple-types-were-found-that-match-the-controller-named-home * * # Home Controller for Area admin * http://stackoverflow.com/questions/17220106/mvc4-default-route-when-using-areas * */ public static void RegisterRoutes(RouteCollection routes) { //routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); //routes.MapRoute( // name: "thumb", // url: "thumb/{*url}", // defaults: new { controller = "thumb", action = "Index", id = UrlParameter.Optional }, // namespaces: new[] { "GayoWeb.Controllers" } //); //routes.MapRoute( // name: "Default", // url: "{controller}/{action}/{id}", // defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }, // namespaces: new[] { "GayoWeb.Controllers" } //); } }